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
ICU: fix use of un-init var
[idzebra-moved-to-github.git]
/
util
/
zebramap.c
diff --git
a/util/zebramap.c
b/util/zebramap.c
index
8af0c93
..
a1b9a79
100644
(file)
--- a/
util/zebramap.c
+++ b/
util/zebramap.c
@@
-698,6
+698,9
@@
int zebra_map_tokenize_next(zebra_map_t zm,
int zebra_map_tokenize_start(zebra_map_t zm,
const char *buf, size_t len)
{
int zebra_map_tokenize_start(zebra_map_t zm,
const char *buf, size_t len)
{
+#if YAZ_HAVE_ICU
+ int ret;
+#endif
assert(zm->use_chain);
wrbuf_rewind(zm->input_str);
assert(zm->use_chain);
wrbuf_rewind(zm->input_str);
@@
-716,10
+719,9
@@
int zebra_map_tokenize_start(zebra_map_t zm,
yaz_log(YLOG_LOG, "input %s",
wrbuf_cstr(zm->print_str));
}
yaz_log(YLOG_LOG, "input %s",
wrbuf_cstr(zm->print_str));
}
- icu_chain_assign_cstr(zm->icu_chain,
- wrbuf_cstr(zm->input_str),
- &status);
- if (!U_SUCCESS(status))
+ ret = icu_chain_assign_cstr(zm->icu_chain,
+ wrbuf_cstr(zm->input_str), &status);
+ if (!ret && !U_SUCCESS(status))
{
if (zm->debug)
{
{
if (zm->debug)
{