summaryrefslogtreecommitdiffstats
path: root/src/pinyin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pinyin.cpp')
-rw-r--r--src/pinyin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 6a2d189..d69e093 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -483,6 +483,7 @@ static bool _add_phrase(pinyin_context_t * context,
bool result = false;
+ /* check whether the phrase exists in phrase table */
phrase_token_t token = null_token;
GArray * tokenarray = g_array_new(FALSE, FALSE, sizeof(phrase_token_t));
@@ -577,7 +578,6 @@ bool pinyin_iterator_add_phrase(import_iterator_t * iter,
if (NULL == phrase || NULL == pinyin)
return result;
- /* check whether the phrase exists in phrase table */
glong phrase_length = 0;
ucs4_t * ucs4_phrase = g_utf8_to_ucs4(phrase, -1, NULL, &phrase_length, NULL);