From da4b6c4774c0adf8dee5ee4a9a8d9d24967ede3c Mon Sep 17 00:00:00 2001 From: Jesus Fernandez Date: Mon, 23 Jan 2017 09:42:31 +0100 Subject: [PATCH] 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 --- src/network/access/qhsts_p.h | 3 +-- 1 file changed, 1 insertion(+), 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; }