[vlc-devel] commit: Remove uneeded asprintf. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 16 08:58:52 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 16 08:10:07 2009 +0200| [6b057b5e0dc46f3761e675fbce1b8b955e37096e] | committer: Rémi Duraffort 

Remove uneeded asprintf.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b057b5e0dc46f3761e675fbce1b8b955e37096e
---

 src/video_output/vout_intf.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index 62368b7..4610a6a 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -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
 




More information about the vlc-devel mailing list