summaryrefslogtreecommitdiffstats
path: root/src/network/access/qhsts_p.h
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-01-23 09:42:31 +0100
committerJesus Fernandez <jesus.fernandez@qt.io>2017-01-23 09:15:28 +0000
commitda4b6c4774c0adf8dee5ee4a9a8d9d24967ede3c (patch)
tree4cd62e9444fbffa16e4e4e9f0439bca859a13807 /src/network/access/qhsts_p.h
parentf346d0e2b0e53f3f875f4eee8c7dd8f5b821f89b (diff)
Fix uninitialized member
Non-static class member "domainIndex" was not initialized in the constructor nor in any functions that it calls. Change-Id: Ie72d997a1f0cf2f3499aac6f7714c7a9d3c7d525 Coverity-Id: 174997 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/access/qhsts_p.h')
-rw-r--r--src/network/access/qhsts_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/access/qhsts_p.h b/src/network/access/qhsts_p.h
index 0bc0a5d975..f3d5da9d23 100644
--- a/src/network/access/qhsts_p.h
+++ b/src/network/access/qhsts_p.h
@@ -85,8 +85,7 @@ private:
struct DomainLabel
{
- DomainLabel() = default;
- DomainLabel(const QString &name) : label(name) { }
+ DomainLabel(const QString &name = QString()) : label(name), domainIndex(0) {}
bool operator < (const DomainLabel &rhs) const
{ return label < rhs.label; }