]> git.sesse.net Git - vlc/commitdiff
Avoid segfault in subtitle demuxer.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 29 Jun 2008 08:05:40 +0000 (10:05 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 2 Jul 2008 18:15:39 +0000 (20:15 +0200)
modules/demux/subtitle.c

index 14940862f72182f8d8ffe8c7a7a854b05b7bbed1..f7b9ae3a488446db350851f491a2c4e90fa2ce95 100644 (file)
@@ -253,7 +253,7 @@ static int Open ( vlc_object_t *p_this )
     /* Get or probe the type */
     p_sys->i_type = SUB_TYPE_UNKNOWN;
     psz_type = var_CreateGetString( p_demux, "sub-type" );
-    if( *psz_type )
+    if( psz_type && *psz_type )
     {
         int i;