summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-07-03 10:23:55 +0800
committerPeng Wu <alexepico@gmail.com>2012-07-03 10:23:55 +0800
commit74fdc84d5e6436339bd96d3be8a125d89e969041 (patch)
tree9e36efa563c0fa44ffa5cf285e4d47638ec72038
parentb717c79be91c000eb9f1de4ef46a32c398a02389 (diff)
downloadlibpinyin-74fdc84d5e6436339bd96d3be8a125d89e969041.tar.gz
libpinyin-74fdc84d5e6436339bd96d3be8a125d89e969041.tar.xz
libpinyin-74fdc84d5e6436339bd96d3be8a125d89e969041.zip
polish code
-rw-r--r--src/pinyin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 4d3f1ee..fbeeed1 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -974,7 +974,7 @@ static bool _remove_duplicated_items_by_phrase_string
cur_item = &g_array_index(candidates, lookup_candidate_t, cur_index);
/* handle the first candidate */
- if (!saved_item) {
+ if (NULL == saved_item) {
saved_item = cur_item;
continue;
}