[Freeswitch-svn] [commit] r13456 - freeswitch/trunk/src

FreeSWITCH SVN mikej at freeswitch.org
Tue May 26 21:21:51 PDT 2009


Author: mikej
Date: Tue May 26 23:21:51 2009
New Revision: 13456

Log:
dos2unix

Modified:
   freeswitch/trunk/src/switch_xml.c

Modified: freeswitch/trunk/src/switch_xml.c
==============================================================================
--- freeswitch/trunk/src/switch_xml.c	(original)
+++ freeswitch/trunk/src/switch_xml.c	Tue May 26 23:21:51 2009
@@ -2325,9 +2325,9 @@
 	static const char *ent[] = { "lt;", "<", "gt;", ">", "quot;", """,
 		"apos;", "'", "amp;", "&", NULL
 	};
-	switch_xml_root_t root = (switch_xml_root_t) malloc(sizeof(struct switch_xml_root));
-	if (!root) return NULL;
-	memset(root, '\0', sizeof(struct switch_xml_root));
+	switch_xml_root_t root = (switch_xml_root_t) malloc(sizeof(struct switch_xml_root));
+	if (!root) return NULL;
+	memset(root, '\0', sizeof(struct switch_xml_root));
 	root->xml.name = (char *) name;
 	root->cur = &root->xml;
 	strcpy(root->err, root->xml.txt = (char *)"");
@@ -2383,8 +2383,8 @@
 	switch_xml_t child;
 
 	if (!xml) return NULL;
-	if (!(child = (switch_xml_t) malloc(sizeof(struct switch_xml)))) return NULL;
-	memset(child, '\0', sizeof(struct switch_xml));
+	if (!(child = (switch_xml_t) malloc(sizeof(struct switch_xml)))) return NULL;
+	memset(child, '\0', sizeof(struct switch_xml));
 	child->name = (char *) name;
 	child->attr = SWITCH_XML_NIL;
 	child->off = off;



More information about the Freeswitch-svn mailing list