From: Adam Dickmeiss Date: Thu, 24 May 2007 10:56:38 +0000 (+0000) Subject: Removed unneeded initialization of more_tokens and need_new_token. X-Git-Tag: PAZPAR2.1.0.0~101 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=565c473977fcfb1c941c19afbeaaa8bc6fff5ea5;p=pazpar2-moved-to-github.git Removed unneeded initialization of more_tokens and need_new_token. Simplified initialization of buf16 chain member. --- diff --git a/src/icu_I18N.c b/src/icu_I18N.c index d3d7e3e..a1ff12c 100644 --- a/src/icu_I18N.c +++ b/src/icu_I18N.c @@ -1,4 +1,4 @@ -/* $Id: icu_I18N.c,v 1.20 2007-05-24 10:51:36 adam Exp $ +/* $Id: icu_I18N.c,v 1.21 2007-05-24 10:56:38 adam Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -769,13 +769,8 @@ struct icu_chain_step * icu_chain_step_create(struct icu_chain * chain, step = (struct icu_chain_step *) malloc(sizeof(struct icu_chain_step)); step->type = type; - step->more_tokens = 0; - step->need_new_token = 1; - if (buf16) - step->buf16 = buf16; - else - step->buf16 = 0; + step->buf16 = buf16; // create auxilary objects switch(step->type) {