From cb2f362029329c6fe2fa1da77b7623fe788cdae0 Mon Sep 17 00:00:00 2001 From: "peterv@propagandism.org" Date: Thu, 7 Feb 2008 03:38:13 -0800 Subject: [PATCH] Fix for bug 415037 ("success" returned uninitialized from XPCVariant::VariantDataToJS). r/sr=jst, a=schrep. --- js/src/xpconnect/src/xpcvariant.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/src/xpconnect/src/xpcvariant.cpp b/js/src/xpconnect/src/xpcvariant.cpp index 09054eb7d6c..8a8b10937f3 100644 --- a/js/src/xpconnect/src/xpcvariant.cpp +++ b/js/src/xpconnect/src/xpcvariant.cpp @@ -663,7 +663,9 @@ VARIANT_DONE: JSObject *obj; holder->GetJSObject(&obj); + NS_ASSERTION(obj, "No JS object but the QIs above succeeded?"); *pJSVal = OBJECT_TO_JSVAL(obj); + success = JS_TRUE; } } if(!JSVAL_IS_OBJECT(*pJSVal))