[Freeswitch-svn] [commit] r6352 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Mon Nov 19 22:31:57 EST 2007
Author: mikej
Date: Mon Nov 19 22:31:57 2007
New Revision: 6352
Modified:
freeswitch/trunk/src/switch_xml.cpp
Log:
fix FSCORE-61
Modified: freeswitch/trunk/src/switch_xml.cpp
==============================================================================
--- freeswitch/trunk/src/switch_xml.cpp (original)
+++ freeswitch/trunk/src/switch_xml.cpp Mon Nov 19 22:31:57 2007
@@ -718,7 +718,7 @@
: (char *)malloc(2); // mem for list of maloced vals
strcpy(attr[l + 3] + (l / 2), " "); // value is not malloced
attr[l + 2] = NULL; // null terminate list
- attr[l + 1] = ""; // temporary attribute value
+ attr[l + 1] = (char *)""; // temporary attribute value
attr[l] = s; // set attribute name
s += strcspn(s, SWITCH_XML_WS "=/>");
@@ -1765,7 +1765,7 @@
'\0', sizeof(struct switch_xml_root));
root->xml.name = (char *) name;
root->cur = &root->xml;
- strcpy(root->err, root->xml.txt = "");
+ strcpy(root->err, root->xml.txt = (char *)"");
root->ent = (char **)memcpy(malloc(sizeof(ent)), ent, sizeof(ent));
root->attr = root->pi = (char ***) (root->xml.attr = SWITCH_XML_NIL);
return &root->xml;
@@ -1824,7 +1824,7 @@
child->attr = SWITCH_XML_NIL;
child->off = off;
child->parent = xml;
- child->txt = "";
+ child->txt = (char *)"";
return switch_xml_insert(child, xml, off);
}
More information about the Freeswitch-svn
mailing list