Commit eab083b7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix compiler warning

parent 82fe643b
...@@ -263,11 +263,12 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, ...@@ -263,11 +263,12 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
/* Get the executable name (similar to the basename command) */ /* Get the executable name (similar to the basename command) */
if( i_argc > 0 ) if( i_argc > 0 )
{ {
p_libvlc->psz_object_name = p_tmp = ppsz_argv[ 0 ]; const char *exe = ppsz_argv[0];
while( *p_tmp ) p_libvlc->psz_object_name = exe = ppsz_argv[ 0 ];
while( *exe )
{ {
if( *p_tmp == '/' ) p_libvlc->psz_object_name = ++p_tmp; if( *exe++ == '/' )
else ++p_tmp; p_libvlc->psz_object_name = exe;
} }
} }
else else
......
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