diff options
author | Peng Wu <alexepico@gmail.com> | 2011-11-30 12:46:39 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-11-30 14:16:34 +0800 |
commit | 38fcc9ae1cbfe81cc52c4e076159047119cd0865 (patch) | |
tree | f2726709c6f6f1d42ab2817fdc612be61ad820bd /tests | |
parent | 47dca981b4d0f155f80087ee892bd2ff80429e7c (diff) | |
download | libpinyin-0.3.x.tar.gz libpinyin-0.3.x.tar.xz libpinyin-0.3.x.zip |
fixes test chewing0.3.x
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_chewing.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_chewing.cpp b/tests/test_chewing.cpp index 4d3a054..2a2674e 100644 --- a/tests/test_chewing.cpp +++ b/tests/test_chewing.cpp @@ -46,7 +46,8 @@ int main(int argc, char * argv[]){ char * sentence = NULL; pinyin_get_sentence (instance, &sentence); - printf("%s\n", sentence); + if (sentence) + printf("%s\n", sentence); g_free(sentence); pinyin_train(instance); |