diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-12-12 12:59:28 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-12-12 12:40:59 +0000 |
commit | f893d66382549b4d1285ae98b66a1fdd4719036a (patch) | |
tree | 86cbb9cdb7037a0d351f794ae91303974bb649d4 /src/qml | |
parent | 5ac14981b03c9c73c08194b1eb992107a096f774 (diff) |
Initialize idx in QV4::Lookup::indexedGetterFallback()
Change-Id: If7fe6635155937fa3e8c94ac081a267d96563859
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/jsruntime/qv4lookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4lookup.cpp b/src/qml/jsruntime/qv4lookup.cpp index 8d322e69d1..52ed449664 100644 --- a/src/qml/jsruntime/qv4lookup.cpp +++ b/src/qml/jsruntime/qv4lookup.cpp @@ -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); |