]> git.ipfire.org Git - thirdparty/suricata.git/commit
debug: suppress cppcheck warning
authorVictor Julien <vjulien@oisf.net>
Sat, 3 May 2025 08:33:55 +0000 (10:33 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 5 May 2025 19:41:02 +0000 (21:41 +0200)
commita8b342a07bf3348d1c77c989c92534a78d719be0
treeda4e790803302abe6b646533b3758e1c1cb604d9
parent223c5687017bf7d794e23d7619f44099da64c38f
debug: suppress cppcheck warning

src/util-debug.c:1562:5: warning: Either the condition 'sc_lid!=NULL' is redundant or there is possible null pointer dereference: sc_lid. [nullPointerRedundantCheck]
    sc_lid->global_log_level = MAX(sc_lid->global_log_level, max_level);
    ^
src/util-debug.c:1569:16: note: Assuming that condition 'sc_lid!=NULL' is not redundant
    if (sc_lid != NULL)
               ^
src/util-debug.c:1562:5: note: Null pointer dereference
    sc_lid->global_log_level = MAX(sc_lid->global_log_level, max_level);
    ^
src/util-debug.c