X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Fnfaxmltest1.c;fp=test%2Fnfaxmltest1.c;h=296dd97496a0f3a95177c53d38829b4102c21bfb;hp=4fc7af6b7379b3786f663ef2200aed591e38c2ad;hb=f83e5541f06bc5587efb2231006841137ba9f6d4;hpb=c372821536d22c1b7efb290fb7d120ae5151adf2 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); }