From: Adam Dickmeiss Date: Wed, 30 Mar 2011 11:41:12 +0000 (+0200) Subject: Remove redundant utf-16 buffer term X-Git-Tag: v4.2.0~54^2~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=79f064dd58f7d27cd29e429566f302bb18d87b9e;p=yaz-moved-to-github.git Remove redundant utf-16 buffer term --- diff --git a/src/icu_transform.c b/src/icu_transform.c index 478efa1..e8d2012 100644 --- a/src/icu_transform.c +++ b/src/icu_transform.c @@ -60,10 +60,8 @@ struct icu_transform * icu_transform_create(const char *id, char action, transform->trans = 0; if (id) - { icu_utf16_from_utf8_cstr(id16, id, status); - id16->utf16[id16->utf16_len] = 0; - } + if (rules) icu_utf16_from_utf8_cstr(rules16, rules, status);