diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 6d1b219e4..215da4ea7 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -1000,14 +1000,15 @@ uint32_t iguana_ramchain_addspend(struct iguana_info *coin,RAMCHAIN_FUNC,bits256 s->prevout = prev_vout; if ( iguana_metascript(coin,RAMCHAIN_ARG,s,vinscript,vinscriptlen,sequence,0) < 0 ) { - static long errlen,err2len; + static long errlen,err2len; char errbuf[1024]; errlen += vinscriptlen; if ( iguana_metascript(coin,RAMCHAIN_ARG,s,vinscript,vinscriptlen,sequence,1) < 0 ) { err2len += vinscriptlen; + errbuf[0] = 0; for (i=0; ihdrsi = hdrsi;