Initialize the l and t parameters to zero before reading the tracking info.
[mtp.git] / 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;