]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
doc_md: coverity - NULL check
authorJaroslav Kysela <perex@perex.cz>
Mon, 23 May 2016 19:31:06 +0000 (21:31 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 May 2016 19:31:06 +0000 (21:31 +0200)
src/webui/doc_md.c

index ae9a89bcc12c9c1adac08a75a520eff94eb238dc..3a7717fc3b8754355f13bc12850279ae4bd42ce6 100644 (file)
@@ -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;