]> git.sesse.net Git - vlc/commitdiff
vlm: Fix a warning about a non initialized pointer use, and fix a potential free...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 10 May 2008 19:05:23 +0000 (21:05 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 10 May 2008 19:05:23 +0000 (21:05 +0200)
src/input/vlm.c

index 21c2c2c236062dbd120145ab24ce6651700a4f7d..e4bd36ef10c7fe4456573cb493fc50e69c144425 100644 (file)
@@ -670,7 +670,7 @@ static int ExecuteExport( vlm_t *p_vlm, vlm_message_t **pp_status )
 static int ExecuteSave( vlm_t *p_vlm, const char *psz_file, vlm_message_t **pp_status )
 {
     FILE *f = utf8_fopen( psz_file, "wt" );
-    char *psz_save;
+    char *psz_save = NULL;
 
     if( !f )
         goto error;