]> git.stg.codes - stg.git/blobdiff - projects/stargazer/traffcounter_impl.cpp
Initialize some members in initialization lists
[stg.git] / projects / stargazer / traffcounter_impl.cpp
index ff18a5e2f17c36ee4e17adaccf3cba80793063c9..ae7f1dfbc1a13ecd2596e452a47df7efb2b1403c 100644 (file)
@@ -59,12 +59,21 @@ tcp = 0, udp, icmp, tcp_udp, all
 //-----------------------------------------------------------------------------
 TRAFFCOUNTER_IMPL::TRAFFCOUNTER_IMPL(USERS_IMPL * u, const std::string & fn)
     : TRAFFCOUNTER(),
+      rules(),
+      packets(),
+      ip2packets(),
+      dirName(),
       WriteServLog(GetStgLogger()),
       rulesFileName(fn),
+      monitorDir(),
       monitoring(false),
       users(u),
       running(false),
       stopped(true),
+      mutex(),
+      thread(),
+      ipBeforeNotifiers(),
+      ipAfterNotifiers(),
       addUserNotifier(*this),
       delUserNotifier(*this)
 {