[vlc-devel] [PATCH 1/3] ftp: fix crash when accessing root folder
Thomas Guillem
thomas at gllm.fr
Sun May 3 19:36:29 CEST 2015
---
modules/access/ftp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/access/ftp.c b/modules/access/ftp.c
index e9eb77b..fa22a20 100644
--- a/modules/access/ftp.c
+++ b/modules/access/ftp.c
@@ -537,7 +537,8 @@ static int Connect( vlc_object_t *p_access, access_sys_t *p_sys )
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 );
goto error;
--
2.1.4
More information about the vlc-devel
mailing list