projects
/
yaz-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:
9e1bf2f
)
Simplification of initial call to icu_iter_invoke
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 17 Jan 2013 11:58:43 +0000
(12:58 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 17 Jan 2013 11:58:43 +0000
(12:58 +0100)
src/icu_chain.c
patch
|
blob
|
history
diff --git
a/src/icu_chain.c
b/src/icu_chain.c
index
9f05d23
..
586fb2d
100644
(file)
--- a/
src/icu_chain.c
+++ b/
src/icu_chain.c
@@
-476,9
+476,8
@@
int icu_iter_next(yaz_icu_iter_t iter)
else
{
/* on first call, iter->input is the input string. Thereafter: 0. */
- iter->last = icu_iter_invoke(iter, iter->steps ?
- iter->steps : iter->chain->csteps,
- iter->input);
+ assert(iter->steps || !iter->chain->csteps);
+ iter->last = icu_iter_invoke(iter, iter->steps, iter->input);
iter->input = 0;
if (!iter->last)