Make sure to initialize the callback variable, in the unlikely (but possible)
event of it not getting initialized otherwise.
Change-Id: Ic8bbf90b825157e55bb93dd9e600ff22ca11b911
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
QUrl url(ctx->engine->resolvedUrl(ctx->arguments[0].toQString()));
- QV4::Value callbackFunction;
+ QV4::Value callbackFunction = QV4::Value::undefinedValue();
if (ctx->argumentCount >= 2 && ctx->arguments[1].asFunctionObject())
callbackFunction = ctx->arguments[1];