Remove uneeded asprintf.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 16 Jul 2009 06:10:07 +0000 (08:10 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 16 Jul 2009 06:10:07 +0000 (08:10 +0200)
src/video_output/vout_intf.c

index 62368b7..4610a6a 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