Commit 6b057b5e authored by Rémi Duraffort's avatar Rémi Duraffort

Remove uneeded asprintf.

parent 990fd1cd
......@@ -537,13 +537,7 @@ static char *VoutSnapshotGetDefaultDirectory( void )
/* XXX: This saves in the data directory. Shouldn't we try saving
* to psz_homedir/Desktop or something nicer ? */
char *psz_datadir = config_GetUserDataDir();
if( psz_datadir )
{
if( asprintf( &psz_path, "%s", psz_datadir ) == -1 )
psz_path = NULL;
free( psz_datadir );
}
psz_path = config_GetUserDataDir();
#endif
......
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