X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fswfc.c;h=9d9772a474a7215c7fe335370dd5d74aaab5c34f;hp=6c84d985f5c2fbaa7cbfa643bc9dae0b377c01ab;hb=feddb673cf8404df91270489b130a72c65195866;hpb=790ed87d5ea4b52284917cf1310e687c6377a94f diff --git a/src/swfc.c b/src/swfc.c index 6c84d98..9d9772a 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -1273,10 +1273,10 @@ void s_outline(char*name, char*format, char*source) int s_playsound(char*name, int loops, int nomultiple, int stop) { sound_t* sound; + SOUNDINFO info; if(!name) return 0; sound = dictionary_lookup(&sounds, name); - SOUNDINFO info; if(!sound) return 0; @@ -2570,10 +2570,10 @@ static int c_action(map_t*args) s_action(text); } else { FILE*fi = fopen(filename, "rb"); - if(!fi) - syntaxerror("Couldn't find file %s: %s", filename, strerror(errno)); int l; char*text; + if(!fi) + syntaxerror("Couldn't find file %s: %s", filename, strerror(errno)); fseek(fi, 0, SEEK_END); l = ftell(fi); fseek(fi, 0, SEEK_SET);