From 4d1083b728818d89c8547fee6dcfc09a8c67abec Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 16 Apr 2013 13:41:20 +0800 Subject: fixes add phrase --- src/pinyin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pinyin.cpp') diff --git a/src/pinyin.cpp b/src/pinyin.cpp index 70a5385..471046e 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -369,7 +369,7 @@ bool pinyin_iterator_add_phrase(import_iterator_t * iter, bool result = false; - if (NULL == pinyin) + if (NULL == phrase || NULL == pinyin) return result; /* check whether the phrase exists in phrase table */ -- cgit