]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Initialize EventLoop members
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 17 Feb 2013 02:09:16 +0000 (15:09 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 17 Feb 2013 02:09:16 +0000 (15:09 +1300)
These members are setup when starting the event loop, but it helps
to have them set to sane values on construction just in case.

 Detected by Coverity Scan. Issue 740515

src/EventLoop.cc

index 7760d746d406215486330fb69840d16c1c403c16..247ada8e23001d145222f7681c672535088881d1 100644 (file)
 #include "SquidTime.h"
 
 EventLoop::EventLoop() : errcount(0), last_loop(false), timeService(NULL),
-        primaryEngine(NULL)
+        primaryEngine(NULL),
+        loop_delay(EVENT_LOOP_TIMEOUT),
+        error(false),
+        runOnceResult(false)
 {}
 
 void