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 )
}
if( p_mypicturesdir == NULL )
{
if( asprintf( &val.psz_string, "%s", config_GetHomeDir() ) == -1 )
val.psz_string = NULL;
}
val.psz_string = strdup( config_GetHomeDir() );
else
{
if( asprintf( &val.psz_string, p_mypicturesdir ) == -1 )
val.psz_string = NULL;
free( p_mypicturesdir );
}
val.psz_string = p_mypicturesdir;
}
#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