Commit 2d7154db authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MMS: fix a potential crash

See http://forum.videolan.org/viewtopic.php?f=14&t=90169
(cherry picked from commit e0dabc4293c810e51cc20803b6b90156d8a12488)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 876a6518
......@@ -628,7 +628,7 @@ static int MMSOpen( access_t *p_access, vlc_url_t *p_url, int i_proto )
/* media file path shouldn't start with / character */
mediapath = p_url->psz_path;
if ( *mediapath == '/' )
if ( mediapath && *mediapath == '/' )
{
mediapath++;
}
......
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