diff options
author | Peng Wu <alexepico@gmail.com> | 2016-06-29 10:33:38 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-06-29 10:33:38 +0800 |
commit | 700bc03da18f37c2f454975a5bf52b7de09c5c6c (patch) | |
tree | f0721ffd4241fb6970f2d419d0a0f0c5e8e022f3 /src/pinyin.cpp | |
parent | 57005ce72cf7609f52e6d24dae172c1422a33455 (diff) | |
download | libpinyin-700bc03da18f37c2f454975a5bf52b7de09c5c6c.tar.gz libpinyin-700bc03da18f37c2f454975a5bf52b7de09c5c6c.tar.xz libpinyin-700bc03da18f37c2f454975a5bf52b7de09c5c6c.zip |
fixes middle variables
Diffstat (limited to 'src/pinyin.cpp')
-rw-r--r-- | src/pinyin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index ff344ac..8c688d7 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -2963,7 +2963,7 @@ bool pinyin_get_full_pinyin_auxiliary_text(pinyin_instance_t * instance, gchar * postfix = _get_aux_text_postfix (instance, cursor, IS_PINYIN); - gchar * middle = NULL; + gchar * middle = ""; assert(cursor < matrix.size()); size_t offset = 0; ChewingKey key; ChewingKeyRest key_rest; @@ -3024,7 +3024,7 @@ bool pinyin_get_double_pinyin_auxiliary_text(pinyin_instance_t * instance, gchar * postfix = _get_aux_text_postfix (instance, cursor, IS_PINYIN); - gchar * middle = NULL; + gchar * middle = ""; /* no "'" support in double pinyin. */ assert(cursor < matrix.size()); size_t offset = 0; @@ -3093,7 +3093,7 @@ bool pinyin_get_chewing_auxiliary_text(pinyin_instance_t * instance, gchar * postfix = _get_aux_text_postfix (instance, cursor, IS_ZHUYIN); - gchar * middle = NULL; + gchar * middle = ""; /* no "'" support in zhuyin */ assert(cursor < matrix.size()); size_t offset = 0; |