From 8bece18e26aebc1effabcd3770bf46f3c057e098 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 20 Aug 2008 15:19:39 +0000 Subject: [PATCH] make getVariable return blank string not the word false git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9328 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/languages/mod_spidermonkey/mod_spidermonkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c index 7eb3bfb471..009f7da300 100644 --- a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c +++ b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c @@ -1811,7 +1811,7 @@ static JSBool session_get_variable(JSContext * cx, JSObject * obj, uintN argc, j if (val) { *rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, val)); } else { - *rval = BOOLEAN_TO_JSVAL(JS_FALSE); + *rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, "")); } } else { *rval = BOOLEAN_TO_JSVAL(JS_FALSE);