From 700bc03da18f37c2f454975a5bf52b7de09c5c6c Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 29 Jun 2016 10:33:38 +0800 Subject: fixes middle variables --- src/pinyin.cpp | 6 +++--- 1 file 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; -- cgit