From 79f064dd58f7d27cd29e429566f302bb18d87b9e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 30 Mar 2011 13:41:12 +0200 Subject: [PATCH] Remove redundant utf-16 buffer term --- src/icu_transform.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 1.7.10.4