From: Jaroslav Kysela Date: Mon, 23 May 2016 19:31:06 +0000 (+0200) Subject: doc_md: coverity - NULL check X-Git-Tag: v4.2.1~479 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65c7d32a4c147aaa42e3897cc46769e80d3d60e9;p=thirdparty%2Ftvheadend.git doc_md: coverity - NULL check --- diff --git a/src/webui/doc_md.c b/src/webui/doc_md.c index ae9a89bcc..3a7717fc3 100644 --- a/src/webui/doc_md.c +++ b/src/webui/doc_md.c @@ -104,6 +104,8 @@ md_props(htsbuf_queue_t *hq, htsmsg_t *m, const char *lang, int nl) int first = 1, b; l = htsmsg_get_list(m, "props"); + if (l == NULL) + return nl; HTSMSG_FOREACH(f, l) { n = htsmsg_field_get_map(f); if (!n) continue;