Initialize idx in QV4::Lookup::indexedGetterFallback()

Change-Id: If7fe6635155937fa3e8c94ac081a267d96563859
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Ulf Hermann 2016-12-12 12:59:28 +01:00
parent 5ac14981b0
commit f893d66382
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ ReturnedValue Lookup::indexedGetterFallback(Lookup *l, const Value &object, cons
{
Q_UNUSED(l);
Scope scope(l->engine);
uint idx;
uint idx = 0;
bool isInt = index.asArrayIndex(idx);
ScopedObject o(scope, object);