Displaying 2 results from an estimated 2 matches for "xmlnewchild".
2004 Sep 16
1
how to submit patches ? (patch for pdb_xml.c included)
...04
@@ -373,6 +373,7 @@
fstring sid_str;
xmlNodePtr cur, user, pass, root;
pdb_xml *data;
+ char *fullname_utf8;
DEBUG(10, ("xmlsam_add_sam_account called!\n"));
@@ -427,8 +428,14 @@
if (pdb_get_nt_username(u) && strcmp(pdb_get_nt_username(u), ""))
xmlNewChild(user, data->ns, "nt_username", pdb_get_nt_username(u));
- if (pdb_get_fullname(u) && strcmp(pdb_get_fullname(u), ""))
- xmlNewChild(user, data->ns, "fullname", pdb_get_fullname(u));
+ if(push_utf8_allocate(&fullname_utf8,pdb_get_fullname(u))...
2011 Apr 29
4
You don't check for malloc failure
...ort();
+ }
if (source != NULL)
event->source = (char *)strdup(source);
@@ -913,6 +926,9 @@
/* build node */
node = (source_xml_t *)malloc(sizeof(source_xml_t));
+ if (node == NULL) {
+ abort();
+ }
node->mount = strdup(mount);
node->node = xmlNewChild (root, NULL, XMLSTR("source"), NULL);
xmlSetProp (node->node, XMLSTR("mount"), XMLSTR(mount));
diff -ru icecast-2.3.2-ORIG/src/thread/thread.c icecast-2.3.2/src/thread/thread.c
--- icecast-2.3.2-ORIG/src/thread/thread.c Wed Sep 14 15:04:12 2005
+++ icecast-2.3.2/src/thre...