From 46b37b2c80164a2869bc966636371ca90ef0c859 Mon Sep 17 00:00:00 2001 From: chme Date: Wed, 19 Dec 2018 08:41:45 +0100 Subject: [PATCH] [daapd] Fix scan-build issue "Dereference of null pointer" --- src/httpd_daap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/httpd_daap.c b/src/httpd_daap.c index 31760928..6cf7546e 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -1707,6 +1707,9 @@ daap_reply_groups(struct httpd_request *hreq) for (i = 0; i < nmeta; i++) { df = meta[i]; + if (!df) + continue; + dfm = df->dfm; /* dmap.itemcount - always added */