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

Freeswitch SVN silik0n at freeswitch.org
Thu Aug 23 14:34:51 EDT 2007


Author: silik0n
Date: Thu Aug 23 14:34:50 2007
New Revision: 5661

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

Log:
fix and ooops



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	Thu Aug 23 14:34:50 2007
@@ -1269,13 +1269,7 @@
 
 
 	if (argc > 1) {
-		tmp = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
-		if (!switch_strlen_zero(tmp)) {
-			phrase_data = tmp;
-		} else {
-			*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
-			return JS_TRUE;
-		}
+		phrase_data = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
 	}
 
 	if (argc > 2) {



More information about the Freeswitch-svn mailing list