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

var_InheritString returns NULL, not ""

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