From 5b1cd0475f2de80e78795c1253a15be3f6399f38 Mon Sep 17 00:00:00 2001
From: smlng <s@mlng.net>
Date: Fri, 21 Sep 2018 13:57:25 +0200
Subject: [PATCH] core/clist: add cppcheck-suppress nullPointer

This was found by cppcheck 1.6x used in Travis-CI, however this
seems to be a false positive, as it is not found by newer versions
of cppcheck.
---
 core/clist.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/clist.c b/core/clist.c
index a89bbc549e..c776d64f7b 100644
--- a/core/clist.c
+++ b/core/clist.c
@@ -78,6 +78,8 @@ clist_node_t *_clist_sort(clist_node_t *list, clist_cmp_func_t cmp)
             for (i = 0; i < insize; i++) {
                 psize++;
                 q = (q->next == oldhead) ? NULL : q->next;
+                /* cppcheck-suppress nullPointer
+                 * (reason: possible bug in cppcheck 1.6x) */
                 if (!q) {
                     break;
                 }
-- 
GitLab