Fix double fclose()
authorRafaël Carré <funman@videolan.org>
Fri, 30 May 2008 11:24:04 +0000 (13:24 +0200)
committerRafaël Carré <funman@videolan.org>
Fri, 30 May 2008 11:24:04 +0000 (13:24 +0200)
CID 140

modules/gui/skins2/src/theme_loader.cpp

index 2f0c4c3..03fa157 100644 (file)
@@ -632,6 +632,7 @@ int tar_extract_all( TAR *t, char *prefix )
                 {
                     fprintf( stderr, "error writing %s skipping...\n", fname );
                     fclose( outfile );
+                    outfile = NULL;
                     unlink( fname );
                 }
             }