From 3498164f9058a807e5e25de88ecce61b97df2d14 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 21 Jan 2010 16:11:04 +0100 Subject: [PATCH] Avoid mixed stmt/var declare --- src/zoom-c.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/zoom-c.c b/src/zoom-c.c index 42f30a0..14922ac 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -2081,8 +2081,9 @@ static const char *get_record_format(ZOOM_record rec, int *len, if (*format == '1' && len) { /* try to XML format res */ - xmlKeepBlanksDefault(0); - xmlDocPtr doc = xmlParseMemory(res, *len); + xmlDocPtr doc; + xmlKeepBlanksDefault(0); /* get get xmlDocFormatMemory to work! */ + doc = xmlParseMemory(res, *len); if (doc) { if (rec->xml_mem) -- 1.7.10.4