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

var_InheritString returns NULL, not ""

parent 677247dc
......@@ -145,11 +145,8 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC;
psz_name = var_InheritString( p_this, "cd-audio" );
if( !psz_name || !*psz_name )
{
free( psz_name );
if( !psz_name )
return VLC_EGENERIC;
}
}
else psz_name = ToLocaleDup( p_access->psz_filepath );
......
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