changeset 31880:4f837c9acc58

Avoid trying to parse playlists without any recognized entries.
author siretart
date Fri, 13 Aug 2010 16:00:18 +0000
parents 253f7779fe98
children 238e9d01501f
files playtreeparser.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/playtreeparser.c	Fri Aug 13 15:58:11 2010 +0000
+++ b/playtreeparser.c	Fri Aug 13 16:00:18 2010 +0000
@@ -367,6 +367,9 @@
 
   free(entries);
 
+  if (!list)
+    return NULL;
+
   entry = play_tree_new();
   play_tree_set_child(entry,list);
   return entry;