From: RĂ©mi Duraffort Date: Sun, 29 Jun 2008 08:05:40 +0000 (+0200) Subject: Avoid segfault in subtitle demuxer. X-Git-Tag: 0.9.0-test2~334 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4bf5e817d35569492c6c3ca068f277d0ae49702f;p=vlc Avoid segfault in subtitle demuxer. --- diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c index 14940862f7..f7b9ae3a48 100644 --- a/modules/demux/subtitle.c +++ b/modules/demux/subtitle.c @@ -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;