From: Francois Fleuret Date: Sun, 23 Dec 2012 13:20:56 +0000 (+0100) Subject: Initialize the l and t parameters to zero before reading the tracking info. X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mtp.git;a=commitdiff_plain;h=0f8fac362dcca49884959623c218ffda0e3f3d6a Initialize the l and t parameters to zero before reading the tracking info. --- diff --git a/mtp_tracker.cc b/mtp_tracker.cc index 02541a6..b956f2c 100644 --- a/mtp_tracker.cc +++ b/mtp_tracker.cc @@ -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;