Commit e23d890e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Partial memory error handling

parent d001ebd4
...@@ -661,8 +661,9 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -661,8 +661,9 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
if ( path != NULL ) if ( path != NULL )
{ {
char *psz_prefix = var_GetString( p_vout, "snapshot-prefix" ); char *psz_prefix = var_GetNonEmptyString( p_vout, "snapshot-prefix" );
if( !psz_prefix ) psz_prefix = strdup( "vlcsnap-" ); if( psz_prefix == NULL )
psz_prefix = strdup( "vlcsnap-" );
else else
{ {
char *psz_tmp = str_format( p_vout, psz_prefix ); char *psz_tmp = str_format( p_vout, psz_prefix );
......
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