summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-07-07 13:42:45 +0800
committerPeng Wu <alexepico@gmail.com>2014-07-07 13:42:45 +0800
commita9ef80b97764405047f93c4c4cca75ff898b35b5 (patch)
tree6c32d2c2f20e7874982f31db1551b2bcb6476bb7
parent02ad786f9f4d6b5da23a8340b298db11b389d9aa (diff)
downloadlibzhuyin-a9ef80b97764405047f93c4c4cca75ff898b35b5.zip
libzhuyin-a9ef80b97764405047f93c4c4cca75ff898b35b5.tar.gz
libzhuyin-a9ef80b97764405047f93c4c4cca75ff898b35b5.tar.xz
fixes function zhuyin_reset
-rw-r--r--src/zhuyin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zhuyin.cpp b/src/zhuyin.cpp
index 35aa774..56e8f14 100644
--- a/src/zhuyin.cpp
+++ b/src/zhuyin.cpp
@@ -1449,6 +1449,7 @@ bool zhuyin_train(zhuyin_instance_t * instance){
bool zhuyin_reset(zhuyin_instance_t * instance){
g_free(instance->m_raw_full_pinyin);
instance->m_raw_full_pinyin = NULL;
+ instance->m_parsed_len = 0;
g_array_set_size(instance->m_prefixes, 0);
g_array_set_size(instance->m_pinyin_keys, 0);