projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added several sections on web service usage of zebra, including snippets, facets...
[idzebra-moved-to-github.git]
/
util
/
zebramap.c
diff --git
a/util/zebramap.c
b/util/zebramap.c
index
c833799
..
f462ef9
100644
(file)
--- 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.78 2008-01-24 16:13:12 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
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);
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");
}
{
yaz_log(YLOG_WARN, "bad encoding for input");
}
+ return -1;
}
}
#endif
}
}
#endif
@@
-730,6
+731,7
@@
int zebra_map_tokenize_start(zebra_map_t zm,
int zebra_maps_is_icu(zebra_map_t zm)
{
int zebra_maps_is_icu(zebra_map_t zm)
{
+ assert(zm);
#if YAZ_HAVE_ICU
return zm->use_chain;
#else
#if YAZ_HAVE_ICU
return zm->use_chain;
#else