From f83e5541f06bc5587efb2231006841137ba9f6d4 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 7 Jul 2006 07:14:30 +0000 Subject: [PATCH] Avoid decl after stmt --- test/nfaxmltest1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 1.7.10.4