From: Adam Dickmeiss Date: Wed, 29 Feb 2012 09:47:13 +0000 (+0100) Subject: Avoid mixed stmt/var declare X-Git-Tag: v4.2.28~10 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=a067640083f9ef3f18feb267cc361b7602b9fa37;p=yaz-moved-to-github.git Avoid mixed stmt/var declare --- diff --git a/src/retrieval.c b/src/retrieval.c index e0ed998..1515664 100644 --- a/src/retrieval.c +++ b/src/retrieval.c @@ -179,6 +179,7 @@ static int conf_retrieval(yaz_retrieval_t p, const xmlNode *ptr) } else { + struct _xmlAttr *attr; if (el->record_conv) { wrbuf_printf(p->wr_error, "Element : " @@ -187,7 +188,6 @@ static int conf_retrieval(yaz_retrieval_t p, const xmlNode *ptr) return -1; } /* parsing attributees */ - struct _xmlAttr *attr; for (attr = ptr->properties; attr; attr = attr->next) { if (!xmlStrcmp(attr->name, BAD_CAST "name")