investigating xmlNodeGetContent() on namespace nodes and removed a few
* tree.c: investigating xmlNodeGetContent() on namespace nodes
and removed a few warnings
Daniel
diff --git a/tree.c b/tree.c
index c7b2a5a..de9b04c 100644
--- a/tree.c
+++ b/tree.c
@@ -3438,7 +3438,7 @@
xmlChar *buffer = NULL, *temp;
size_t buf_len;
xmlChar *buf;
- char *sep;
+ const char *sep;
const char *name;
char nametemp[100];
int occur = 0;
@@ -4091,8 +4091,12 @@
case XML_DOCB_DOCUMENT_NODE:
#endif
return (NULL);
- case XML_NAMESPACE_DECL:
- return (xmlStrdup(((xmlNsPtr) cur)->href));
+ case XML_NAMESPACE_DECL: {
+ xmlChar *tmp;
+
+ tmp = xmlStrdup(((xmlNsPtr) cur)->href);
+ return (tmp);
+ }
case XML_ELEMENT_DECL:
/* TODO !!! */
return (NULL);