]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Not all EPG types have a name, so don't deref ecg_name.
authorAndreas Öman <andreas@lonelycoder.com>
Sun, 28 Sep 2008 15:36:31 +0000 (15:36 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Sun, 28 Sep 2008 15:36:31 +0000 (15:36 +0000)
webui/extjs.c

index c6cdab6cfded39fda5ce1312e8a9212a26f323fe..57c9213a47b1084a2a8482e207a71fed455804f9 100644 (file)
@@ -949,7 +949,8 @@ extjs_epg(http_connection_t *hc, const char *remain, void *opaque)
     htsmsg_add_u32(m, "end", e->e_stop);
     htsmsg_add_u32(m, "duration", e->e_stop - e->e_start);
     
-    if(e->e_content_type != NULL)
+    if(e->e_content_type != NULL && 
+       e->e_content_type->ect_group->ecg_name != NULL)
       htsmsg_add_str(m, "contentgrp", e->e_content_type->ect_group->ecg_name);
     htsmsg_add_msg(array, NULL, m);
   }