projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25df6e6
)
Avoid mixed stmt/var declare
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 3 Feb 2014 13:42:46 +0000
(14:42 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 3 Feb 2014 13:42:46 +0000
(14:42 +0100)
src/pazpar2_config.c
patch
|
blob
|
history
diff --git
a/src/pazpar2_config.c
b/src/pazpar2_config.c
index
da3d469
..
3b9d47a
100644
(file)
--- a/
src/pazpar2_config.c
+++ b/
src/pazpar2_config.c
@@
-515,9
+515,9
@@
static int parse_metadata(struct conf_service *service, xmlNode *n,
static void service_add_metadata(xmlNode *n, int *num_metadata, int *num_sortkeys)
{
+ xmlChar *sortkey = xmlGetProp(n, (xmlChar *) "sortkey");
(*num_metadata)++;
- xmlChar *sortkey = xmlGetProp(n, (xmlChar *) "sortkey");
if (sortkey && strcmp((const char *) sortkey, "no"))
(*num_sortkeys)++;
xmlFree(sortkey);