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
Bundle sha1 rather than use libgcrypt/nettle
[yaz-moved-to-github.git]
/
src
/
xml_include.c
diff --git
a/src/xml_include.c
b/src/xml_include.c
index
0bd732d
..
8008610
100644
(file)
--- a/
src/xml_include.c
+++ b/
src/xml_include.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
* 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)
{
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);
int ret = config_include_src(config, &n,
(const char *) src);
xmlFree(src);