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
This commit is contained in:
Anthony Minessale 2008-08-20 15:19:39 +00:00
parent 4257622c56
commit 8bece18e26
1 changed files with 1 additions and 1 deletions

View File

@ -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);