From c17a962424542e27e2d4d28ea93e8fab86c8cd1f Mon Sep 17 00:00:00 2001 From: Simone Mainardi Date: Thu, 2 Jan 2020 19:25:37 +0100 Subject: [PATCH] Avoids re-init of var --- src/ParserInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ParserInterface.cpp b/src/ParserInterface.cpp index 5e3ffef51b..9bb5af1ba9 100755 --- a/src/ParserInterface.cpp +++ b/src/ParserInterface.cpp @@ -43,7 +43,7 @@ void ParserInterface::processFlow(ParsedFlow *zflow) { bool src2dst_direction, new_flow; Flow *flow; ndpi_protocol p = Flow::ndpiUnknownProtocol; - time_t now = time(NULL); + time_t now; bpf_timeval now_tv = { 0 }; Mac *srcMac = NULL, *dstMac = NULL; IpAddress srcIP, dstIP;