diff options
author | Peng Wu <alexepico@gmail.com> | 2013-04-16 13:41:20 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-04-16 13:41:20 +0800 |
commit | 4d1083b728818d89c8547fee6dcfc09a8c67abec (patch) | |
tree | a0d595df4451d72a9835cbe22aa357dcb22469d0 | |
parent | edead27671841073511ba6ba521a8b5a261a9499 (diff) | |
download | libpinyin-4d1083b728818d89c8547fee6dcfc09a8c67abec.tar.gz libpinyin-4d1083b728818d89c8547fee6dcfc09a8c67abec.tar.xz libpinyin-4d1083b728818d89c8547fee6dcfc09a8c67abec.zip |
fixes add phrase
-rw-r--r-- | src/pinyin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |