From f6f7055f24cb0c4c299b9ae848ab87b852cb8145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sun, 28 Sep 2008 15:36:11 +0000 Subject: [PATCH] Description may be NULL so don't deref it. --- htsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htsp.c b/htsp.c index f37dc533..4308ab92 100644 --- a/htsp.c +++ b/htsp.c @@ -345,7 +345,8 @@ htsp_method_getEvent(htsp_connection_t *htsp, htsmsg_t *in) htsmsg_add_u32(out, "start", e->e_start); htsmsg_add_u32(out, "stop", e->e_stop); htsmsg_add_str(out, "title", e->e_title); - htsmsg_add_str(out, "description", e->e_desc); + if(e->e_desc != NULL) + htsmsg_add_str(out, "description", e->e_desc); n = RB_NEXT(e, e_channel_link); if(n != NULL)