[Freeswitch-svn] [commit] r9328 - freeswitch/trunk/src/mod/languages/mod_spidermonkey

Freeswitch SVN anthm at freeswitch.org
Wed Aug 20 11:19:40 EDT 2008


Author: anthm
Date: Wed Aug 20 11:19:39 2008
New Revision: 9328

Modified:
   freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

Log:
make getVariable return blank string not the word false 

Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c	Wed Aug 20 11:19:39 2008
@@ -1811,7 +1811,7 @@
 		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);



More information about the Freeswitch-svn mailing list