diff --git a/core/clist.c b/core/clist.c index a89bbc549e152af370aa286fa014907360610da7..c776d64f7b443069977b160d4ae8d24926049810 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; }