flow: minor compiler warnings

flow-util.c: In function 'FlowEndCountersRegister':
flow-util.c:294:34: warning: 'name' may be used uninitialized in this function [-Wmaybe-uninitialized]
  294 |         fec->flow_tcp_state[i] = StatsRegisterCounter(name, t);
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pull/7703/head
Victor Julien 3 years ago
parent 4aa4ad3f74
commit 5fec07b87d

@ -265,7 +265,7 @@ void FlowEndCountersRegister(ThreadVars *t, FlowEndCounters *fec)
}
for (enum TcpState i = TCP_NONE; i <= TCP_CLOSED; i++) {
const char *name;
const char *name = NULL;
switch (i) {
case TCP_NONE:
name = "flow.end.tcp_state.none";

Loading…
Cancel
Save