projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Using the ICU wrapper from YAZ rather than its own.
[pazpar2-moved-to-github.git]
/
src
/
pazpar2_config.c
diff --git
a/src/pazpar2_config.c
b/src/pazpar2_config.c
index
174fe83
..
ef6f2e4
100644
(file)
--- a/
src/pazpar2_config.c
+++ b/
src/pazpar2_config.c
@@
-471,15
+471,21
@@
static struct conf_server *parse_server(xmlNode *node)
}
else if (!strcmp((const char *) n->name, "relevance"))
{
}
else if (!strcmp((const char *) n->name, "relevance"))
{
- server->relevance_pct = pp2_charset_create_xml(n->children);
+ server->relevance_pct = pp2_charset_create_xml(n);
+ if (!server->relevance_pct)
+ return 0;
}
else if (!strcmp((const char *) n->name, "sort"))
{
}
else if (!strcmp((const char *) n->name, "sort"))
{
- server->sort_pct = pp2_charset_create_xml(n->children);
+ server->sort_pct = pp2_charset_create_xml(n);
+ if (!server->sort_pct)
+ return 0;
}
else if (!strcmp((const char *) n->name, "mergekey"))
{
}
else if (!strcmp((const char *) n->name, "mergekey"))
{
- server->mergekey_pct = pp2_charset_create_xml(n->children);
+ server->mergekey_pct = pp2_charset_create_xml(n);
+ if (!server->mergekey_pct)
+ return 0;
}
else if (!strcmp((const char *) n->name, "service"))
{
}
else if (!strcmp((const char *) n->name, "service"))
{