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

FreeSWITCH SVN brian at freeswitch.org
Fri Mar 20 14:31:04 PDT 2009


Author: brian
Date: Fri Mar 20 16:31:04 2009
New Revision: 12694

Log:
gcc sux today

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

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	Fri Mar 20 16:31:04 2009
@@ -2420,8 +2420,8 @@
 	}
 
 	switch_snprintf(id, sizeof(id), "%d", holder->rows);
-	
-	switch_xml_set_attr_d(holder->xml, "row_id", id);
+
+	switch_xml_set_attr(switch_xml_set_flag(row, SWITCH_XML_DUP), strdup("row_id"), strdup(id));
 
 	for (x = 0; x < argc; x++) {
 		char *name = columnNames[x];
@@ -2687,7 +2687,7 @@
 			char *xmlstr;
 			switch_snprintf(count, sizeof(count), "%d", holder.count);
 
-			switch_xml_set_attr_d(holder.xml, "row_count", count);
+			switch_xml_set_attr(switch_xml_set_flag(holder.xml, SWITCH_XML_DUP), strdup("row_count"), strdup(count));
 			xmlstr = switch_xml_toxml(holder.xml, SWITCH_FALSE);
 
 			if (xmlstr) {



More information about the Freeswitch-trunk mailing list