From: Adam Dickmeiss Date: Thu, 17 Jan 2013 11:58:43 +0000 (+0100) Subject: Simplification of initial call to icu_iter_invoke X-Git-Tag: v4.2.49~11 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=fd5c6eb04843b315e1096eff7a26e694a30d1f53;p=yaz-moved-to-github.git Simplification of initial call to icu_iter_invoke --- diff --git a/src/icu_chain.c b/src/icu_chain.c index 9f05d23..586fb2d 100644 --- 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)