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

Fix compiler warning

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