]> git.sesse.net Git - vlc/commitdiff
Fix superfluous double init
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 9 Dec 2007 19:00:25 +0000 (19:00 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 9 Dec 2007 19:00:25 +0000 (19:00 +0000)
src/libvlc-common.c

index bd08876ddd0c2eaa13daa82b0f990164679d04b9..2d2abcbf5dea12157a12a3d5ad8e20058536119c 100644 (file)
@@ -263,8 +263,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
     /* Get the executable name (similar to the basename command) */
     if( i_argc > 0 )
     {
-        const char *exe = ppsz_argv[0];
-        p_libvlc->psz_object_name = exe = ppsz_argv[ 0 ];
+        const char *exe = p_libvlc->psz_object_name = ppsz_argv[0];
         while( *exe )
         {
             if( *exe++ == '/' )