Commit b8fb4bc1 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

vlm: Fix a warning about a non initialized pointer use, and fix a potential...

vlm: Fix a warning about a non initialized pointer use, and fix a potential free() of a random pointer.
parent f05d28d6
...@@ -670,7 +670,7 @@ static int ExecuteExport( vlm_t *p_vlm, vlm_message_t **pp_status ) ...@@ -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 ) static int ExecuteSave( vlm_t *p_vlm, const char *psz_file, vlm_message_t **pp_status )
{ {
FILE *f = utf8_fopen( psz_file, "wt" ); FILE *f = utf8_fopen( psz_file, "wt" );
char *psz_save; char *psz_save = NULL;
if( !f ) if( !f )
goto error; goto error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment