Skip to content

Commit bd19823

Browse files
committed
util/port-interval-tree: suppress cppcheck false positives
1 parent f138a64 commit bd19823

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/util-port-interval-tree.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
*/
3939
static int SCPortIntervalCompareAndUpdate(const SCPortIntervalNode *a, SCPortIntervalNode *b)
4040
{
41+
DEBUG_VALIDATE_BUG_ON(a == NULL); // help cppcheck
4142
if (a->port2 > b->max) {
4243
b->max = a->port2;
4344
}
@@ -48,6 +49,7 @@ static int SCPortIntervalCompareAndUpdate(const SCPortIntervalNode *a, SCPortInt
4849
}
4950

5051
// cppcheck-suppress nullPointerRedundantCheck
52+
// cppcheck-suppress ctunullpointer
5153
IRB_GENERATE(PI, SCPortIntervalNode, irb, SCPortIntervalCompareAndUpdate);
5254

5355
/**

0 commit comments

Comments
 (0)