diff options
author | Sergio Martins <iamsergio@gmail.com> | 2013-10-19 22:09:17 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-19 23:48:44 +0200 |
commit | 24d926cb8fb421b751b5be97fd214469e4c429c2 (patch) | |
tree | 63cea4978e1ac088b4c2f9d9a4a26964fb55d6af /src/corelib/io/qurlrecode.cpp | |
parent | deb925b1b6dccec5c36a3d0a302fcb5ec58b040d (diff) |
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 <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qurlrecode.cpp')
-rw-r--r-- | src/corelib/io/qurlrecode.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; |