fix msvc build, declaration after statement.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4935 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-04-15 01:06:29 +00:00
parent 18ae7f381a
commit fabed21ea8

View File

@ -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);