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:
99d682b
)
Avoid mixed stmt/var declare
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 26 Jan 2010 14:37:43 +0000
(15:37 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 26 Jan 2010 14:37:43 +0000
(15:37 +0100)
src/pazpar2_config.c
patch
|
blob
|
history
diff --git
a/src/pazpar2_config.c
b/src/pazpar2_config.c
index
0771c2c
..
870151a
100644
(file)
--- 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