summaryrefslogtreecommitdiffstats
path: root/src/storage
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-19 15:16:10 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-19 15:16:10 +0800
commit1256e3c800f7d9136bcaf33627971b27e598bb83 (patch)
treeb1cd9deebe7836dcd65761194df6531b4c2e6853 /src/storage
parent1a663eac6e9dcd16375690d9ab54f51bf02c83b7 (diff)
downloadlibpinyin-1256e3c800f7d9136bcaf33627971b27e598bb83.tar.gz
libpinyin-1256e3c800f7d9136bcaf33627971b27e598bb83.tar.xz
libpinyin-1256e3c800f7d9136bcaf33627971b27e598bb83.zip
update pinyin_guess_sentence_with_prefix
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/phrase_large_table2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h
index 36ef53c..03dc185 100644
--- a/src/storage/phrase_large_table2.h
+++ b/src/storage/phrase_large_table2.h
@@ -112,6 +112,7 @@ public:
static inline int reduce_tokens(PhraseTokens tokens,
GArray * tokenarray) {
int num = 0;
+ g_array_set_size(tokenarray, 0);
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
GArray * array = tokens[i];