forked from Mirrors/freeswitch
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:
parent
18ae7f381a
commit
fabed21ea8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user