Bug 334196 nsXPCWrappedJSClass::GetNamedPropertyAsVariant returns an unitialized value when JS_ValueToId fails

r=jst sr=jst
This commit is contained in:
timeless%mozdev.org 2006-05-06 22:37:05 +00:00
parent 3d2bf4ae10
commit 36a8d6a84e

View File

@ -311,7 +311,7 @@ nsXPCWrappedJSClass::GetNamedPropertyAsVariant(XPCCallContext& ccx,
JSContext* cx = ccx.GetJSContext();
JSBool ok;
jsid id;
nsresult rv;
nsresult rv = NS_ERROR_FAILURE;
AutoScriptEvaluate scriptEval(cx);
scriptEval.StartEvaluating();