git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed logging bug in giflib detection
[swftools.git]
/
lib
/
rfxswf.c
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
4a409ac
..
dbf0cd6
100644
(file)
--- 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));
SWF* swf_CopySWF(SWF*swf)
{
SWF*nswf = rfx_alloc(sizeof(SWF));
+ TAG*tag, *ntag;
memcpy(nswf, swf, sizeof(SWF));
nswf->firstTag = 0;
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)
while(tag) {
ntag = swf_CopyTag(ntag, tag);
if(!nswf->firstTag)