From fd5c6eb04843b315e1096eff7a26e694a30d1f53 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 17 Jan 2013 12:58:43 +0100 Subject: [PATCH] Simplification of initial call to icu_iter_invoke --- src/icu_chain.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 1.7.10.4