From fabed21ea885ccaddf0b577e2fa6b4eac08fa11f Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 15 Apr 2007 01:06:29 +0000 Subject: [PATCH] fix msvc build, declaration after statement. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4935 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_commands/mod_commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 1598279049..0e1217288e 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -991,9 +991,10 @@ static switch_status_t show_function(char *data, switch_core_session_t *session, 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);