From 7a025b4322380d71b3b2abb1843fcbf622ff4b56 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 31 Jan 2006 11:01:26 +0000 Subject: [PATCH] Avoid mixed/stmt var declare --- test/tstxmlquery.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/tstxmlquery.c b/test/tstxmlquery.c index 625d5e2..dd6729e 100644 --- a/test/tstxmlquery.c +++ b/test/tstxmlquery.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tstxmlquery.c,v 1.6 2006-01-30 14:02:07 adam Exp $ + * $Id: tstxmlquery.c,v 1.7 2006-01-31 11:01:26 adam Exp $ */ #include @@ -45,9 +45,9 @@ enum pqf2xml_status pqf2xml_text(const char *pqf, const char *expect_xml) status = PQF_FAILED; else { - status = QUERY2XML_FAILED; #if HAVE_XML2 xmlDocPtr doc = 0; + yaz_rpnquery2xml(rpn, &doc); if (!doc) @@ -71,6 +71,8 @@ enum pqf2xml_status pqf2xml_text(const char *pqf, const char *expect_xml) } xmlFreeDoc(doc); } +#else + status = QUERY2XML_FAILED; #endif } odr_destroy(odr); -- 1.7.10.4