FakeVim: initialize variables

Compiler complains about potential use of uninitialized value.

Change-Id: I120329351983ab795f0dae0ebcc87cd53762f0bd
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2013-01-16 15:35:56 +01:00
parent aa0440474c
commit 26275fb175

View File

@@ -7035,8 +7035,8 @@ bool FakeVimHandler::Private::changeNumberTextObject(int count)
// parse value
bool ok;
int base = hex ? 16 : octal ? 8 : 10;
qlonglong value; // decimal value
qlonglong uvalue; // hexadecimal or octal value (only unsigned)
qlonglong value = 0; // decimal value
qlonglong uvalue = 0; // hexadecimal or octal value (only unsigned)
if (hex || octal)
uvalue = num.toULongLong(&ok, base);
else