log-pcap.c: cleanup scan-build warning

Don't initialize value to a value that is never used.
pull/2428/head
Jason Ish 9 years ago committed by Victor Julien
parent 553f7ec290
commit a1eca40611

@ -629,7 +629,7 @@ static TmEcode PcapLogInitRingBuffer(PcapLogData *pl)
TAILQ_INSERT_TAIL(&pl->pcap_file_list, pf, next);
} else {
/* Ordered insert. */
PcapFileName *it = TAILQ_FIRST(&pl->pcap_file_list);
PcapFileName *it = NULL;
TAILQ_FOREACH(it, &pl->pcap_file_list, next) {
if (pf->secs < it->secs) {
break;

Loading…
Cancel
Save