]> git.sesse.net Git - vlc/blobdiff - src/video_output/vout_intf.c
Remove uneeded asprintf.
[vlc] / src / video_output / vout_intf.c
index 62368b71edcf20fa9cad7811efe94e234b50978a..4610a6a66e69e0c396ad856719aaa77414270ee2 100644 (file)
@@ -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