From 4bf5e817d35569492c6c3ca068f277d0ae49702f Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Sun, 29 Jun 2008 10:05:40 +0200 Subject: [PATCH] Avoid segfault in subtitle demuxer. --- modules/demux/subtitle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2