Bug 771378 (part 4) - Follow-up to avoid an uninitialized variable. r=sfink.
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 18 Jul 2012 15:53:17 -0700
changeset 99714 5a711846e73df3da5d7feb66c73a83447ef9be35
parent 99713 2c49724bcbfd0ab62b7d7242d0cf177042617747
child 99715 e750cf83e6c27c39167682c57f88347a02b4743e
push id12157
push usernnethercote@mozilla.com
push dateWed, 18 Jul 2012 23:00:36 +0000
treeherdermozilla-inbound@5a711846e73d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs771378
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 771378 (part 4) - Follow-up to avoid an uninitialized variable. r=sfink.
js/src/jsxml.cpp
--- a/js/src/jsxml.cpp
+++ b/js/src/jsxml.cpp
@@ -5189,17 +5189,17 @@ js_GetXMLMethod(JSContext *cx, HandleObj
     return ok;
 }
 
 JSBool
 js_TestXMLEquality(JSContext *cx, const Value &v1, const Value &v2, JSBool *bp)
 {
     JSXML *xml, *vxml;
     JSObject *vobj;
-    JSBool ok;
+    JSBool ok = JS_TRUE;
     JSString *str, *vstr;
     double d, d2;
 
     JSObject *obj;
     jsval v;
     if (v1.isObject() && v1.toObject().isXML()) {
         obj = &v1.toObject();
         v = v2;