From 19c322b0896e3549934d7297aa0a7fe32beac8b6 Mon Sep 17 00:00:00 2001 From: Morten Sorvig Date: Wed, 19 Oct 2011 11:00:04 +0200 Subject: Fix "may be used uninitialized" compiler warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I96e9dbf0f3df527785e03661b9c25bd2d214cd44 Reviewed-by: João Abecasis --- src/corelib/tools/qhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib') diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h index cc120aa09e..ec9bd42c83 100644 --- a/src/corelib/tools/qhash.h +++ b/src/corelib/tools/qhash.h @@ -857,7 +857,7 @@ Q_OUTOFLINE_TEMPLATE typename QHash::Node **QHash::findNode(cons uint *ahp) const { Node **node; - uint h; + uint h = 0; if (d->numBuckets || ahp) { h = qHash(akey); -- cgit v1.2.3