From 7ac6428937b4b235b59446ea7ca3f13a0378ed5c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 4 Aug 2011 12:59:22 +0200 Subject: [PATCH] void mixed stmt/var declare --- test/test_libstemmer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test_libstemmer.c b/test/test_libstemmer.c index 3c18e04..5deea5f 100644 --- a/test/test_libstemmer.c +++ b/test/test_libstemmer.c @@ -20,13 +20,12 @@ int test_stemmer_stem(yaz_stemmer_p stemmer, const char* to_stem, const char *ex struct icu_buf_utf16 *src = icu_buf_utf16_create(0); struct icu_buf_utf16 *dst = icu_buf_utf16_create(0); struct icu_buf_utf8 *dst8 = icu_buf_utf8_create(0); - + int rc = 0; UErrorCode status; const char *result; + icu_utf16_from_utf8_cstr(src, to_stem, &status); yaz_stemmer_stem(stemmer, dst, src, &status); - /* Assume fail */ - int rc = 0; if (status == U_ZERO_ERROR) { icu_utf16_to_utf8(dst8, dst, &status); result = icu_buf_utf8_to_cstr(dst8); -- 1.7.10.4