mirror of https://github.com/OISF/suricata
defrag tests: fix compiler warnings
defrag.c:2423:9: error: variable 'p' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defrag.c:2460:9: note: uninitialized use occurs here
if (p != NULL) {
^
defrag.c:2423:5: note: remove the 'if' if its condition is always false
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defrag.c:2423:9: error: variable 'p' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~
defrag.c:2460:9: note: uninitialized use occurs here
if (p != NULL) {
^
defrag.c:2423:9: note: remove the '||' if its condition is always false
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
defrag.c:2423:9: error: variable 'p' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~
defrag.c:2460:9: note: uninitialized use occurs here
if (p != NULL) {
^
defrag.c:2423:9: note: remove the '||' if its condition is always false
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~~~~
defrag.c:2427:5: note: variable 'p' is declared here
Packet *p = Defrag(NULL, NULL, p1, NULL);
^
defrag.c:2486:9: error: variable 'p' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defrag.c:2523:9: note: uninitialized use occurs here
if (p != NULL) {
^
defrag.c:2486:5: note: remove the 'if' if its condition is always false
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defrag.c:2486:9: error: variable 'p' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~
defrag.c:2523:9: note: uninitialized use occurs here
if (p != NULL) {
^
defrag.c:2486:9: note: remove the '||' if its condition is always false
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
defrag.c:2486:9: error: variable 'p' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~
defrag.c:2523:9: note: uninitialized use occurs here
if (p != NULL) {
^
defrag.c:2486:9: note: remove the '||' if its condition is always false
if (p1 == NULL || p2 == NULL || p3 == NULL) {
^~~~~~~~~~~~~
defrag.c:2490:5: note: variable 'p' is declared here
Packet *p = Defrag(NULL, NULL, p1, NULL);
^
6 errors generated.
make[3]: *** [defrag.o] Error 1
pull/1675/head
parent
6f223c6dba
commit
4d83318b46
Loading…
Reference in New Issue