From 24d926cb8fb421b751b5be97fd214469e4c429c2 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Sat, 19 Oct 2013 22:09:17 +0100 Subject: Initialize variable to fix build [-Werror=uninitialized]. The complaining compiler is: gcc version 4.6.3 (crosstool-NG hg+default-ddc327ebaef2) Change-Id: Iae488a89d75492e76a39a326b2db36548f8894d0 Reviewed-by: Thiago Macieira --- src/corelib/io/qurlrecode.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/corelib') diff --git a/src/corelib/io/qurlrecode.cpp b/src/corelib/io/qurlrecode.cpp index ba1a77744c..80fc0319fe 100644 --- a/src/corelib/io/qurlrecode.cpp +++ b/src/corelib/io/qurlrecode.cpp @@ -410,10 +410,9 @@ static int recode(QString &result, const ushort *begin, const ushort *end, QUrl: const ushort *input = begin; ushort *output = 0; + EncodingAction action = EncodeCharacter; for ( ; input != end; ++input) { ushort c; - EncodingAction action; - // try a run where no change is necessary for ( ; input != end; ++input) { c = *input; -- cgit v1.2.3