X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fxml_include.c;h=8008610e25f2fe2fec0ee931c33f6be1b7e62963;hp=0bd732d0ed10f73c0615547b9d463739fa02f270;hb=323805b6779bcf1befdc7cdd7f10c23b06885e0d;hpb=fc2ea703578e62e5ceac26a204402284465bc8cc diff --git a/src/xml_include.c b/src/xml_include.c index 0bd732d..8008610 100644 --- a/src/xml_include.c +++ b/src/xml_include.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ @@ -131,6 +131,7 @@ static int process_config_includes(yaz_xml_include_t config, xmlNode *n) xmlChar *src = xmlGetProp(n, (xmlChar *) "src"); if (src) { + /* src must be preserved, because n is destroyed */ int ret = config_include_src(config, &n, (const char *) src); xmlFree(src);