From a84ae03dc14334568c27ce24bfec11146d0bb44f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 26 Jan 2010 15:37:43 +0100 Subject: [PATCH] Avoid mixed stmt/var declare --- 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 0771c2c..870151a 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -707,6 +707,7 @@ static struct conf_server *server_create(struct conf_config *config, { xmlNode *n; struct conf_server *server = nmem_malloc(nmem, sizeof(struct conf_server)); + xmlChar *server_id = xmlGetProp(node, (xmlChar *) "id"); server->host = 0; server->port = 0; @@ -722,7 +723,6 @@ static struct conf_server *server_create(struct conf_config *config, server->mergekey_pct = 0; server->server_settings = 0; - xmlChar *server_id = xmlGetProp(node, (xmlChar *) "id"); if (server_id) server->server_id = nmem_strdup(nmem, (const char *)server_id); else -- 1.7.10.4