-/* $Id: zebramap.c,v 1.76 2007-12-20 19:02:12 adam Exp $
+/* $Id: zebramap.c,v 1.78 2008-01-24 16:13:12 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
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
int zebra_maps_is_icu(zebra_map_t zm)
{
+ assert(zm);
#if YAZ_HAVE_ICU
return zm->use_chain;
#else