projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XML Include: do not substitute root node
[yaz-moved-to-github.git]
/
src
/
xml_include.c
diff --git
a/src/xml_include.c
b/src/xml_include.c
index
db5f13e
..
add66d9
100644
(file)
--- a/
src/xml_include.c
+++ b/
src/xml_include.c
@@
-133,7
+133,7
@@
static int config_include_src(yaz_xml_include_t config, xmlNode **np,
static int process_config_includes(yaz_xml_include_t config, xmlNode *n)
{
static int process_config_includes(yaz_xml_include_t config, xmlNode *n)
{
- for (; n; n = n->next)
+ for (n = n->children; n; n = n->next)
{
if (n->type == XML_ELEMENT_NODE)
{
{
if (n->type == XML_ELEMENT_NODE)
{
@@
-152,7
+152,7
@@
static int process_config_includes(yaz_xml_include_t config, xmlNode *n)
}
else
{
}
else
{
- if (process_config_includes(config, n->children))
+ if (process_config_includes(config, n))
return -1;
}
}
return -1;
}
}