[Freeswitch-svn] [commit] r4935 - freeswitch/trunk/src/mod/applications/mod_commands

Freeswitch SVN mikej at freeswitch.org
Sat Apr 14 21:06:30 EDT 2007


Author: mikej
Date: Sat Apr 14 21:06:29 2007
New Revision: 4935

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c

Log:
fix msvc build, declaration after statement.

Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	Sat Apr 14 21:06:29 2007
@@ -991,9 +991,10 @@
 		switch_core_db_exec(db, sql, show_as_xml_callback, &holder, &errmsg);
 		if (holder.xml) {
 			char count[50];
+			char *xmlstr;
 			snprintf(count, sizeof(count), "%d", holder.count);
 			switch_xml_set_attr_d(holder.xml, "row_count", count);
-			char *xmlstr = switch_xml_toxml(holder.xml);
+			xmlstr = switch_xml_toxml(holder.xml);
 
 			if (xmlstr) {
 				holder.stream->write_function(holder.stream, "%s", xmlstr);



More information about the Freeswitch-svn mailing list