From 8af616069b4805d43dc554a33d7d4503f9a87782 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 4 Jan 2012 17:46:01 +0800 Subject: fixes crash --- src/storage/pinyin_parser2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index 932a8eb..483f4ed 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -728,7 +728,7 @@ bool ChewingParser2::parse_one_key(pinyin_option_t options, } /* search the chewing in the chewing index table. */ - if (search_chewing_index(options, chewing, key)) { + if (chewing && search_chewing_index(options, chewing, key)) { /* save back tone if available. */ key.m_tone = tone; g_free(chewing); -- cgit