]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp
Усунуто проблему race conditions у rscriptd
[stg.git] / projects / stargazer / plugins / capture / divert_freebsd / divert_cap.cpp
index a76629fbca35711aef5edb6c80b86f330ccf63bb..59fc06a9070597ebeaff10547f8d2ba98b13e7a4 100644 (file)
@@ -96,9 +96,11 @@ return "Divert_cap v.1.0";
 }
 //-----------------------------------------------------------------------------
 DIVERT_CAP::DIVERT_CAP()
 }
 //-----------------------------------------------------------------------------
 DIVERT_CAP::DIVERT_CAP()
+    : port(0),
+      nonstop(false),
+      isRunning(false),
+      traffCnt(NULL)
 {
 {
-isRunning = false;
-nonstop = false;
 }
 //-----------------------------------------------------------------------------
 void DIVERT_CAP::SetTraffcounter(TRAFFCOUNTER * tc)
 }
 //-----------------------------------------------------------------------------
 void DIVERT_CAP::SetTraffcounter(TRAFFCOUNTER * tc)