summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lookup/pinyin_lookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lookup/pinyin_lookup.cpp b/src/lookup/pinyin_lookup.cpp
index 37611d8..e84973f 100644
--- a/src/lookup/pinyin_lookup.cpp
+++ b/src/lookup/pinyin_lookup.cpp
@@ -381,7 +381,7 @@ bool PinyinLookup::save_next_step(int next_step_pos, lookup_value_t * cur_step,
bool PinyinLookup::final_step(MatchResults & results){
//reset results
g_array_set_size(results, m_steps_content->len);
- for ( size_t i = 0 ; i < m_steps_content->len ; ++i){
+ for ( size_t i = 0 ; i < results->len ; ++i){
phrase_token_t * token = &g_array_index(results, phrase_token_t, i);
*token = null_token;
}