From: kramm Date: Tue, 6 Jan 2009 21:32:06 +0000 (+0000) Subject: added assert() in cut_last_push X-Git-Tag: release-0-9-0~392 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=2b09bad438f6e9725584508726ca00c84eee75ae;hp=acd4d2f4ebdd984129651a6f449e008549985022;p=swftools.git added assert() in cut_last_push --- diff --git a/lib/as3/code.c b/lib/as3/code.c index 4f7e255..d5c3acf 100644 --- a/lib/as3/code.c +++ b/lib/as3/code.c @@ -1138,6 +1138,7 @@ code_t*code_cutlast(code_t*c) code_t* cut_last_push(code_t*c) { + assert(!c->next); while(c) { if(!c) break; opcode_t*op = opcode_get(c->opcode);