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

Fix format string non-sense

(I wonder how we can have so stupid code)
parent e2a350d5
...@@ -609,16 +609,9 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -609,16 +609,9 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
} }
if( p_mypicturesdir == NULL ) if( p_mypicturesdir == NULL )
{ val.psz_string = strdup( config_GetHomeDir() );
if( asprintf( &val.psz_string, "%s", config_GetHomeDir() ) == -1 )
val.psz_string = NULL;
}
else else
{ val.psz_string = p_mypicturesdir;
if( asprintf( &val.psz_string, p_mypicturesdir ) == -1 )
val.psz_string = NULL;
free( p_mypicturesdir );
}
} }
#else #else
......
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