X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Fzebramap.c;h=67613ec6f6a2e9a7cfe783edfbfc441c69de3941;hp=c833799ff36f62e65f59421c4dc4bada5273acf7;hb=5670e4ac9b1b2fe462afdfec8dc0f747957084bc;hpb=e86905c6c3e2ef3d05ab57c4662acddfcc265c15 diff --git a/util/zebramap.c b/util/zebramap.c index c833799..67613ec 100644 --- a/util/zebramap.c +++ b/util/zebramap.c @@ -1,4 +1,4 @@ -/* $Id: zebramap.c,v 1.76 2007-12-20 19:02:12 adam Exp $ +/* $Id: zebramap.c,v 1.77 2007-12-20 19:05:12 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -716,12 +716,13 @@ int zebra_map_tokenize_start(zebra_map_t zm, icu_chain_assign_cstr(zm->icu_chain, wrbuf_cstr(zm->input_str), &status); - if (zm->debug) + if (!U_SUCCESS(status)) { - if (!U_SUCCESS(status)) + if (zm->debug) { yaz_log(YLOG_WARN, "bad encoding for input"); } + return -1; } } #endif