projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e86905c
)
Let zebra_map_tokenize_start returns -1 in case of error.
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 20 Dec 2007 19:05:12 +0000
(19:05 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 20 Dec 2007 19:05:12 +0000
(19:05 +0000)
util/zebramap.c
patch
|
blob
|
history
diff --git
a/util/zebramap.c
b/util/zebramap.c
index
c833799
..
67613ec
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.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