From b65713c219e3ce0181d04ea9d3518a85ca2c6807 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 30 Jan 2006 08:08:23 +0000 Subject: [PATCH] Avoid mixed stmt/var declare --- test/tstxmlquery.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/tstxmlquery.c b/test/tstxmlquery.c index 9aec56b..155232f 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.4 2006-01-29 21:59:13 adam Exp $ + * $Id: tstxmlquery.c,v 1.5 2006-01-30 08:08:23 adam Exp $ */ #include @@ -18,6 +18,7 @@ static void pqf2xml_text(const char *pqf) YAZ_PQF_Parser parser = yaz_pqf_create(); ODR odr = odr_createmem(ODR_ENCODE); Z_RPNQuery *rpn; + Z_Query *query; YAZ_CHECK(parser); @@ -29,7 +30,7 @@ static void pqf2xml_text(const char *pqf) yaz_pqf_destroy(parser); - Z_Query *query = odr_malloc(odr, sizeof(*query)); + query = odr_malloc(odr, sizeof(*query)); query->which = Z_Query_type_1; query->u.type_1 = rpn; -- 1.7.10.4