X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ficu_utf16.c;h=a5bfcb68ca33ed0ad10a2cbe8afd93fb2340f41d;hb=08e2bab36d24a98ed921130df0973370be5aac80;hp=6c028b48703d1ab44a5ee770c568d31f80aeefda;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755;p=yaz-moved-to-github.git diff --git a/src/icu_utf16.c b/src/icu_utf16.c index 6c028b4..a5bfcb6 100644 --- a/src/icu_utf16.c +++ b/src/icu_utf16.c @@ -1,5 +1,5 @@ /* 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. */ @@ -61,7 +61,7 @@ struct icu_buf_utf16 * icu_buf_utf16_resize(struct icu_buf_utf16 * buf16, if (!buf16) return 0; - if (capacity > 0) + if (capacity > 0) { if (0 == buf16->utf16) buf16->utf16 = (UChar *) xmalloc(sizeof(UChar) * capacity); @@ -79,7 +79,6 @@ struct icu_buf_utf16 * icu_buf_utf16_resize(struct icu_buf_utf16 * buf16, buf16->utf16_len = 0; buf16->utf16_cap = 0; } - return buf16; }