NDMeshStreamer: initialize timeOfLastSend_ to prevent comparison
authorLukasz Wesolowski <wesolwsk@illinois.edu>
Sun, 18 Mar 2012 04:08:51 +0000 (23:08 -0500)
committerLukasz Wesolowski <wesolwsk@illinois.edu>
Sun, 18 Mar 2012 04:08:51 +0000 (23:08 -0500)
against unitialized value

src/libs/ck-libs/NDMeshStreamer/NDMeshStreamer.h

index 561ce9b2251c222b1cd0189547c406c72a5a72db..ac0cee9c3b7f851cf11004a043771ebfd3a4f45e 100644 (file)
@@ -438,6 +438,9 @@ void MeshStreamer<dtype>::associateCallback(
             " to 10 ms\n");
     progressPeriodInMs_ = 10;
   }
+
+  // initialize to prevent comparison against uninitialized value
+  timeOfLastSend_ = CkWallTimer();
   enablePeriodicFlushing();
       
 }