summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-06-29 10:33:38 +0800
committerPeng Wu <alexepico@gmail.com>2016-06-29 10:33:38 +0800
commit700bc03da18f37c2f454975a5bf52b7de09c5c6c (patch)
treef0721ffd4241fb6970f2d419d0a0f0c5e8e022f3
parent57005ce72cf7609f52e6d24dae172c1422a33455 (diff)
downloadlibpinyin-700bc03da18f37c2f454975a5bf52b7de09c5c6c.tar.gz
libpinyin-700bc03da18f37c2f454975a5bf52b7de09c5c6c.tar.xz
libpinyin-700bc03da18f37c2f454975a5bf52b7de09c5c6c.zip
fixes middle variables
-rw-r--r--src/pinyin.cpp6
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;