From f51b5b23754da0f2446ade88c176939baffc64f9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 22 Jan 2010 23:02:46 +0100 Subject: [PATCH] XML Include: do not substitute root node Do not substitute root node .. The node parameter is simply xmlNode* - not xmlNode **. --- src/xml_include.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xml_include.c b/src/xml_include.c index db5f13e..add66d9 100644 --- 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) { - for (; n; n = n->next) + for (n = n->children; n; n = n->next) { if (n->type == XML_ELEMENT_NODE) { @@ -152,7 +152,7 @@ static int process_config_includes(yaz_xml_include_t config, xmlNode *n) } else { - if (process_config_includes(config, n->children)) + if (process_config_includes(config, n)) return -1; } } -- 1.7.10.4