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

Freeswitch SVN anthm at freeswitch.org
Tue Aug 1 00:45:22 EDT 2006


Author: anthm
Date: Tue Aug  1 00:45:22 2006
New Revision: 2214

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

Log:
code before declaration as usual fixed for win32's sake

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	Tue Aug  1 00:45:22 2006
@@ -1843,6 +1843,8 @@
 		char *cmd = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
 		char *arg = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
 		switch_core_session_t *session = NULL;
+		switch_stream_handle_t stream = {0};
+		char retbuf[2048] = "";
 
 		if (argc > 2) {
 			JSObject *session_obj;
@@ -1854,9 +1856,7 @@
 			}
 		}
 		
-		switch_stream_handle_t stream = {0};
-		char retbuf[2048] = "";
-
+		
 		stream.data = retbuf;
 		stream.end = stream.data;
 		stream.data_size = sizeof(retbuf);



More information about the Freeswitch-svn mailing list