From: Lucas C. Villa Real Date: Tue, 30 Mar 2010 19:39:55 +0000 (+0200) Subject: Fixes a crash in VLC caused by a missing verification for a NULL pointer. X-Git-Tag: 1.1.0-pre1~213 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ad36104619595ff0ce5378ad9fb01338980a8fd7;p=vlc Fixes a crash in VLC caused by a missing verification for a NULL pointer. Signed-off-by: Laurent Aimar --- diff --git a/src/input/es_out.c b/src/input/es_out.c index bbcbcd7222..8d348b1509 100644 --- a/src/input/es_out.c +++ b/src/input/es_out.c @@ -1234,7 +1234,7 @@ static void EsOutProgramMeta( es_out_t *out, int i_group, const vlc_meta_t *p_me char **ppsz_all_keys = vlc_meta_CopyExtraNames(p_meta ); info_category_t *p_cat = NULL; - if( psz_provider || *ppsz_all_keys[0] ) + if( psz_provider || ( ppsz_all_keys[0] && *ppsz_all_keys[0] ) ) { char *psz_cat = EsOutProgramGetMetaName( p_pgrm ); if( psz_cat )