From c30942b8016d7f38d221a1ecdaebf25ecdd1805a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 12 Jan 2007 23:37:15 +0000 Subject: [PATCH] Avoid declarations after statements. --- src/pazpar2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pazpar2.c b/src/pazpar2.c index e7b2b4a..fc5ee38 100644 --- a/src/pazpar2.c +++ b/src/pazpar2.c @@ -1,4 +1,4 @@ -/* $Id: pazpar2.c,v 1.27 2007-01-11 17:14:06 quinn Exp $ */ +/* $Id: pazpar2.c,v 1.28 2007-01-12 23:37:15 adam Exp $ */ #include #include @@ -512,13 +512,13 @@ static struct record *ingest_record(struct client *cl, Z_External *rec) continue; if (!strcmp(n->name, "metadata")) { - type = xmlGetProp(n, "type"); - value = xmlNodeListGetString(xdoc, n->children, 0); struct conf_metadata *md = 0; struct record_metadata **wheretoput, *newm; int imeta; int first, last; + type = xmlGetProp(n, "type"); + value = xmlNodeListGetString(xdoc, n->children, 0); // First, find out what field we're looking at for (imeta = 0; imeta < service->num_metadata; imeta++) if (!strcmp(type, service->metadata[imeta].name)) -- 1.7.10.4