From: Adam Dickmeiss Date: Mon, 30 Jan 2006 08:08:23 +0000 (+0000) Subject: Avoid mixed stmt/var declare X-Git-Tag: YAZ.2.1.12~13 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=b65713c219e3ce0181d04ea9d3518a85ca2c6807 Avoid mixed stmt/var declare --- 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;