Initialize the l and t parameters to zero before reading the tracking info.
authorFrancois Fleuret <francois@fleuret.org>
Sun, 23 Dec 2012 13:20:56 +0000 (14:20 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Sun, 23 Dec 2012 13:20:56 +0000 (14:20 +0100)
mtp_tracker.cc

index 02541a6..b956f2c 100644 (file)
@@ -108,7 +108,7 @@ void MTPTracker::write(ostream *os) {
 }
 
 void MTPTracker::read(istream *is) {
-  int l, t;
+  int l = 0, t = 0;
 
   (*is) >> l >> t;