Bug 801344 - Make sure that JSRuntime::initSelfHosting never returns an uninitialized value; r=till

This commit is contained in:
Ehsan Akhgari 2012-10-14 11:12:03 -04:00
parent 33cbe5d37b
commit 6b1b2c0d54

View File

@ -354,7 +354,7 @@ JSRuntime::initSelfHosting(JSContext *cx)
*/
JSErrorReporter oldReporter = JS_SetErrorReporter(cx, selfHosting_ErrorReporter);
Value rv;
bool ok;
bool ok = false;
char *filename = getenv("MOZ_SELFHOSTEDJS");
if (filename) {