[vlc-devel] commit: Fix double fclose() ( Rafaël Carré )

git version control git at videolan.org
Fri May 30 13:22:30 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri May 30 13:24:04 2008 +0200| [065b5cd26181866e9a007064015e974410a15d02]

Fix double fclose()

CID 140

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=065b5cd26181866e9a007064015e974410a15d02
---

 modules/gui/skins2/src/theme_loader.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/skins2/src/theme_loader.cpp b/modules/gui/skins2/src/theme_loader.cpp
index 2f0c4c3..03fa157 100644
--- a/modules/gui/skins2/src/theme_loader.cpp
+++ b/modules/gui/skins2/src/theme_loader.cpp
@@ -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 );
                 }
             }




More information about the vlc-devel mailing list