Bug 486653: fix minor warning for return value
authorDavid Mandelin <dmandelin@mozilla.com>
Mon, 08 Nov 2010 14:06:38 -0800
changeset 57733 5a0dffa066fcb83b9ebf1e96ae86b70dd60124e1
parent 57732 c5b07cc4b4ca470f9f24f6776c073ee1a872745d
child 57734 c57549b012a21fa8b303377d62325f56fe2238dc
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
bugs486653
milestone2.0b8pre
Bug 486653: fix minor warning for return value
js/src/jsproxy.cpp
--- a/js/src/jsproxy.cpp
+++ b/js/src/jsproxy.cpp
@@ -1329,17 +1329,17 @@ FixProxy(JSContext *cx, JSObject *proxy,
 
     /*
      * Make a blank object from the recipe fix provided to us.  This must have
      * number of fixed slots as the proxy so that we can swap their contents.
      */
     gc::FinalizeKind kind = gc::FinalizeKind(proxy->arena()->header()->thingKind);
     JSObject *newborn = NewNonFunction<WithProto::Given>(cx, clasp, proto, parent, kind);
     if (!newborn)
-        return NULL;
+        return false;
     AutoObjectRooter tvr2(cx, newborn);
 
     if (clasp == &CallableObjectClass) {
         newborn->setSlot(JSSLOT_CALLABLE_CALL, GetCall(proxy));
         newborn->setSlot(JSSLOT_CALLABLE_CONSTRUCT, GetConstruct(proxy));
     }
 
     {