X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.c;h=dbf0cd6e472ef59f64aa2c58854d2dfe5b434a38;hb=586c8e8bd1b972e9de6702f846d28400c71c7522;hp=4a409ac5424b8d8ed3cbd77ce28cb3e92e794ede;hpb=ff1365c9402d6384c6b21adf8fef24e8d9b8d593;p=swftools.git diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 4a409ac..dbf0cd6 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -1496,10 +1496,11 @@ int swf_WriteCGI(SWF * swf) SWF* swf_CopySWF(SWF*swf) { SWF*nswf = rfx_alloc(sizeof(SWF)); + TAG*tag, *ntag; memcpy(nswf, swf, sizeof(SWF)); nswf->firstTag = 0; - TAG*tag = swf->firstTag; - TAG*ntag = 0; + tag = swf->firstTag; + ntag = 0; while(tag) { ntag = swf_CopyTag(ntag, tag); if(!nswf->firstTag)