[Freeswitch-trunk] [commit] r6712 - freeswitch/trunk/src/mod/languages/mod_spidermonkey_odbc

Freeswitch SVN mikej at freeswitch.org
Wed Dec 12 17:53:47 EST 2007


Author: mikej
Date: Wed Dec 12 17:53:47 2007
New Revision: 6712

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

Log:
remove large unnecessary buffer.

Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey_odbc/mod_spidermonkey_odbc.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey_odbc/mod_spidermonkey_odbc.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey_odbc/mod_spidermonkey_odbc.c	Wed Dec 12 17:53:47 2007
@@ -357,10 +357,8 @@
 	if (odbc_obj->stmt) {
 		SQLSMALLINT c = 0, x = 0;
 		SQLLEN m = 0;
-		char code[66560];
 
-		switch_snprintf(code, sizeof(code), "~var _oDbC_dB_RoW_DaTa_ = {}");
-		eval_some_js(code, cx, obj, rval);
+		eval_some_js("~var _oDbC_dB_RoW_DaTa_ = {}", cx, obj, rval);
 		if (*rval == JS_FALSE) {
 			return JS_TRUE;
 		}



More information about the Freeswitch-trunk mailing list