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:
parent
4257622c56
commit
8bece18e26
|
@ -1811,7 +1811,7 @@ static JSBool session_get_variable(JSContext * cx, JSObject * obj, uintN argc, j
|
||||||
if (val) {
|
if (val) {
|
||||||
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, val));
|
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, val));
|
||||||
} else {
|
} else {
|
||||||
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, ""));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
||||||
|
|
Loading…
Reference in New Issue