mirror of https://github.com/OISF/suricata
cppcheck: work around snprintf warning
Cppcheck 1.72 gives a warning on the following code pattern:
char blah[32] = "";
snprintf(blah, sizeof(blah), "something");
The warning is:
(error) Buffer is accessed out of bounds.
While this appears to be a FP, in most cases the initialization to ""
was unnecessary as the snprintf statement immediately follows the
variable declaration.
pull/1937/head
parent
33fd710367
commit
8394b38941
Loading…
Reference in New Issue