/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
{
struct icu_transform *transform
= (struct icu_transform *) xmalloc(sizeof(struct icu_transform));
- UErrorCode status;
+ UErrorCode status = U_ZERO_ERROR;
assert(old);
transform->action = old->action;
assert(old->trans);
if (id)
icu_utf16_from_utf8_cstr(id16, id, status);
+
if (rules)
icu_utf16_from_utf8_cstr(rules16, rules, status);