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:
parent
f83fa3c95e
commit
e358c0095e
@ -618,7 +618,7 @@ void QTzTimeZonePrivate::init(const QByteArray &olsenId)
|
||||
|
||||
// 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
|
||||
int utcOffset;
|
||||
int utcOffset = 0;
|
||||
foreach (const QTzTransition &tran, tranList) {
|
||||
if (!typeList.at(tran.tz_typeind).tz_isdst) {
|
||||
utcOffset = typeList.at(tran.tz_typeind).tz_gmtoff;
|
||||
|
Loading…
Reference in New Issue
Block a user