From: Adam Dickmeiss Date: Fri, 7 Jul 2006 07:14:30 +0000 (+0000) Subject: Avoid decl after stmt X-Git-Tag: YAZ.2.1.26~33 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=f83e5541f06bc5587efb2231006841137ba9f6d4;p=yaz-moved-to-github.git Avoid decl after stmt --- diff --git a/test/nfaxmltest1.c b/test/nfaxmltest1.c index 4fc7af6..296dd97 100644 --- a/test/nfaxmltest1.c +++ b/test/nfaxmltest1.c @@ -1,7 +1,7 @@ /* Copyright (C) 2006, Index Data ApS * See the file LICENSE for details. * - * $Id: nfaxmltest1.c,v 1.4 2006-07-07 07:11:05 adam Exp $ + * $Id: nfaxmltest1.c,v 1.5 2006-07-07 07:14:30 adam Exp $ * */ @@ -36,6 +36,7 @@ void test1() { /** \brief Test parsing of a minimal, invalid xml string */ void test2() { + yaz_nfa *nfa; char *xmlstr=" " " " " foo " @@ -43,7 +44,7 @@ void test2() { ""; /* missing "" */ yaz_log(YLOG_LOG,"Parsing bad xml, expecting errors:"); - yaz_nfa *nfa=yaz_nfa_parse_xml_memory(xmlstr); + nfa = yaz_nfa_parse_xml_memory(xmlstr); YAZ_CHECK(!nfa); }