From 8b3ba34657edbbeec13ef70cbaa966d6a735aed5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 29 May 2010 10:53:12 +0300 Subject: [PATCH] VCD: fix segfault when opening not-a-file --- modules/access/vcd/vcd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/access/vcd/vcd.c b/modules/access/vcd/vcd.c index 482625b5cd..97e74547a2 100644 --- a/modules/access/vcd/vcd.c +++ b/modules/access/vcd/vcd.c @@ -96,6 +96,9 @@ static int Open( vlc_object_t *p_this ) { access_t *p_access = (access_t *)p_this; access_sys_t *p_sys; + if( p_access->psz_filepath == NULL ) + return VLC_EGENERIC; + char *psz_dup = ToLocaleDup( p_access->psz_filepath ); char *psz; int i_title = 0; -- 2.11.4.GIT