diff options
author | Peng Wu <alexepico@gmail.com> | 2014-06-18 14:43:41 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-06-18 14:43:41 +0800 |
commit | f3c8681da3073cf40f2f53e24c324a8072c13683 (patch) | |
tree | 406fe057ecb79f04c9da9f1d64c45c7c51d74e24 /src/ZYZPinyinEditor.cc | |
parent | 1a9eb9f7355521173132c8f31f918d803811aa32 (diff) | |
download | ibus-libzhuyin-f3c8681da3073cf40f2f53e24c324a8072c13683.tar.gz ibus-libzhuyin-f3c8681da3073cf40f2f53e24c324a8072c13683.tar.xz ibus-libzhuyin-f3c8681da3073cf40f2f53e24c324a8072c13683.zip |
fixes crash
Diffstat (limited to 'src/ZYZPinyinEditor.cc')
-rw-r--r-- | src/ZYZPinyinEditor.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ZYZPinyinEditor.cc b/src/ZYZPinyinEditor.cc index dd4adf7..0416b85 100644 --- a/src/ZYZPinyinEditor.cc +++ b/src/ZYZPinyinEditor.cc @@ -134,7 +134,8 @@ PinyinEditor::updatePreeditText (void) char * sentence = NULL; zhuyin_get_sentence (instance, &sentence); - m_preedit_text += sentence; + if (sentence) + m_preedit_text += sentence; g_free (sentence); size_t len = zhuyin_get_parsed_input_length (instance); |