[vlc-commits] MMS: fix a potential crash
Jean-Baptiste Kempf
git at videolan.org
Fri May 6 17:42:40 CEST 2011
vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue May 3 16:50:21 2011 +0200| [2d7154db1ddac56f589cffb111d6eb30d67a72b5] | committer: 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: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=2d7154db1ddac56f589cffb111d6eb30d67a72b5
---
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 45e363d..655038f 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