Commit 54551b5c authored by Thomas Guillem's avatar Thomas Guillem

ftp: fix crash when accessing default directory

parent 763e765d
...@@ -537,7 +537,8 @@ static int Connect( vlc_object_t *p_access, access_sys_t *p_sys ) ...@@ -537,7 +537,8 @@ static int Connect( vlc_object_t *p_access, access_sys_t *p_sys )
goto error; goto error;
} }
if( (p_sys->features.b_unicode ? IsUTF8 : IsASCII)(p_sys->url.psz_path) == NULL ) if( p_sys->url.psz_path &&
(p_sys->features.b_unicode ? IsUTF8 : IsASCII)(p_sys->url.psz_path) == NULL )
{ {
msg_Err( p_access, "unsupported path: \"%s\"", p_sys->url.psz_path ); msg_Err( p_access, "unsupported path: \"%s\"", p_sys->url.psz_path );
goto error; goto error;
......
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