[vlc-commits] MMS: fix a potential crash
Jean-Baptiste Kempf
git at videolan.org
Tue May 3 17:00:03 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue May 3 16:50:21 2011 +0200| [e0dabc4293c810e51cc20803b6b90156d8a12488] | committer: Jean-Baptiste Kempf
MMS: fix a potential crash
See http://forum.videolan.org/viewtopic.php?f=14&t=90169
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0dabc4293c810e51cc20803b6b90156d8a12488
---
modules/access/mms/mmstu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c
index e58612f..4ea1cca 100644
--- a/modules/access/mms/mmstu.c
+++ b/modules/access/mms/mmstu.c
@@ -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++;
}
More information about the vlc-commits
mailing list