Initialize variable
dstZone.offset was being used without initialization. Coverity-Id: 178898 Change-Id: I8eabef3b4386c3ebfea5d1caffff9add6264bfce Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
This commit is contained in:
parent
634e5dd9f2
commit
458b0ba8e0
@ -535,7 +535,7 @@ static QVector<QTimeZonePrivate::Data> calculatePosixTransitions(const QByteArra
|
||||
// See the section about TZ at http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
|
||||
QList<QByteArray> parts = posixRule.split(',');
|
||||
|
||||
PosixZone stdZone, dstZone;
|
||||
PosixZone stdZone, dstZone = PosixZone::invalid();
|
||||
{
|
||||
const QByteArray &zoneinfo = parts.at(0);
|
||||
const char *begin = zoneinfo.constBegin();
|
||||
|
Loading…
Reference in New Issue
Block a user