changeset 24962:fb50e37df836

Fix possible null-pointer-dereference in parse_smil().
author cehoyos
date Thu, 08 Nov 2007 23:05:54 +0000
parents de251a0b5228
children 0a733c2c577e
files playtreeparser.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/playtreeparser.c	Thu Nov 08 18:14:49 2007 +0000
+++ b/playtreeparser.c	Thu Nov 08 23:05:54 2007 +0000
@@ -456,6 +456,7 @@
       return NULL; //line not smil exit
   }
 
+  if (!line) return NULL;
   mp_msg(MSGT_PLAYTREE,MSGL_V,"Detected smil playlist format\n");
   play_tree_parser_stop_keeping(p);