diff options
author | Peng Wu <alexepico@gmail.com> | 2011-07-20 17:42:02 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-07-20 17:42:02 +0800 |
commit | 39e9373312c719a1e151db8d2e35c57b39917d18 (patch) | |
tree | e00f98b7c66f45f22f19249ad202ec124c7b15c3 /utils/segment/ngseg.cpp | |
parent | d5fba5d98c24c16e0142810c0b49ec7e4d212799 (diff) | |
download | libpinyin-39e9373312c719a1e151db8d2e35c57b39917d18.tar.gz libpinyin-39e9373312c719a1e151db8d2e35c57b39917d18.tar.xz libpinyin-39e9373312c719a1e151db8d2e35c57b39917d18.zip |
fixes a bug, gcc?
Diffstat (limited to 'utils/segment/ngseg.cpp')
-rw-r--r-- | utils/segment/ngseg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/segment/ngseg.cpp b/utils/segment/ngseg.cpp index 748ca01..c909310 100644 --- a/utils/segment/ngseg.cpp +++ b/utils/segment/ngseg.cpp @@ -67,9 +67,9 @@ bool deal_with_segmentable(GArray * current_utf16){ printf("\n"); #endif g_phrase_lookup->convert_to_utf8(results, "\n", result_string); - if (result_string) + if (result_string) { printf("%s\n", result_string); - else { + } else { char * tmp_string = g_utf16_to_utf8 ( (utf16_t *) current_utf16->data, current_utf16->len, NULL, NULL, NULL); |