[vlc-devel] commit: vlm: Fix a warning about a non initialized pointer use, and fix a potential free() of a random pointer. (Pierre d'Herbemont )

git version control git at videolan.org
Sat May 10 21:10:15 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat May 10 21:05:23 2008 +0200| [b8fb4bc181b346f6849f5fefcbaa40baa97ee31d]

vlm: Fix a warning about a non initialized pointer use, and fix a potential free() of a random pointer.

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

 src/input/vlm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/vlm.c b/src/input/vlm.c
index 21c2c2c..e4bd36e 100644
--- a/src/input/vlm.c
+++ b/src/input/vlm.c
@@ -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;




More information about the vlc-devel mailing list