Fix warning about uninitialized variable

Change-Id: I9c1a04556d4c77183d7025ca33314e7dfbf953ab
Reviewed-by: John Layt <jlayt@kde.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Lars Knoll 2013-09-24 16:07:13 +02:00 committed by The Qt Project
parent f83fa3c95e
commit e358c0095e

View File

@ -618,7 +618,7 @@ void QTzTimeZonePrivate::init(const QByteArray &olsenId)
// Offsets are stored as total offset, want to know separate UTC and DST offsets // Offsets are stored as total offset, want to know separate UTC and DST offsets
// so find the first non-dst transition to use as base UTC Offset // so find the first non-dst transition to use as base UTC Offset
int utcOffset; int utcOffset = 0;
foreach (const QTzTransition &tran, tranList) { foreach (const QTzTransition &tran, tranList) {
if (!typeList.at(tran.tz_typeind).tz_isdst) { if (!typeList.at(tran.tz_typeind).tz_isdst) {
utcOffset = typeList.at(tran.tz_typeind).tz_gmtoff; utcOffset = typeList.at(tran.tz_typeind).tz_gmtoff;