]> git.sesse.net Git - vlc/commitdiff
Fixes a crash in VLC caused by a missing verification for a NULL pointer.
authorLucas C. Villa Real <lucasvr@lsi.usp.br>
Tue, 30 Mar 2010 19:39:55 +0000 (21:39 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 30 Mar 2010 19:39:55 +0000 (21:39 +0200)
Signed-off-by: Laurent Aimar <fenrir@videolan.org>
src/input/es_out.c

index bbcbcd7222b279ff26b19a53ccf91bd7f4826b66..8d348b1509d778072e45ae2949d3d837961a9355 100644 (file)
@@ -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 )