fixed bug in name display
[swftools.git] / lib / as3 / abc.c
index e3a9858..c01ff61 100644 (file)
@@ -922,10 +922,11 @@ void* swf_DumpABC(FILE*fo, void*code, char*prefix)
 {
     abc_file_t* file = (abc_file_t*)code;
         
-    if(file->name)
+    if(file->name) {
         fprintf(fo, "%s#\n", prefix);
         fprintf(fo, "%s#name: %s\n", prefix, file->name);
         fprintf(fo, "%s#\n", prefix);
+    }
 
     int t;
     for(t=0;t<file->metadata->num;t++) {