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>
This commit is contained in:
Sergio Martins 2013-10-19 22:09:17 +01:00 committed by The Qt Project
parent deb925b1b6
commit 24d926cb8f

View File

@ -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;