From 29f5e5ad951fbb586f49b5f62b7638e4846d5c6b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 19 Sep 2011 15:20:55 +0200 Subject: [PATCH] Move declaration --- src/pazpar2_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 8a7b651..b766b7f 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -263,7 +263,6 @@ static int parse_metadata(struct conf_service *service, xmlNode *n, enum conf_metadata_type type = Metadata_type_generic; enum conf_metadata_merge merge = Metadata_merge_no; enum conf_setting_type setting = Metadata_setting_no; - enum conf_sortkey_type sk_type = Metadata_sortkey_relevance; enum conf_metadata_mergekey mergekey_type = Metadata_mergekey_no; int brief = 0; int termlist = 0; @@ -405,6 +404,7 @@ static int parse_metadata(struct conf_service *service, xmlNode *n, // add a sortkey if so specified if (xml_sortkey && strcmp((const char *) xml_sortkey, "no")) { + enum conf_sortkey_type sk_type; if (merge == Metadata_merge_no) { yaz_log(YLOG_FATAL, -- 1.7.10.4