From 3bc17d31f7039dec412cf1577ebeca1115e03059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sat, 18 Jul 2009 15:33:27 +0000 Subject: [PATCH] Don't deref e->e_title if it's NULL. --- src/htsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/htsp.c b/src/htsp.c index 12b2966c..220d0c0e 100644 --- a/src/htsp.c +++ b/src/htsp.c @@ -432,7 +432,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); + if(e->e_title != NULL) + htsmsg_add_str(out, "title", e->e_title); if(e->e_desc != NULL) htsmsg_add_str(out, "description", e->e_desc);