summaryrefslogtreecommitdiffstats
path: root/utils/segment
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-07-20 15:42:08 +0800
committerPeng Wu <alexepico@gmail.com>2011-07-20 15:42:08 +0800
commitd5fba5d98c24c16e0142810c0b49ec7e4d212799 (patch)
tree0b3761b1b99e7bd3b78fca33c029afeb8d340b1a /utils/segment
parentde7ef0bad17a6b1925f99e69ff50bf14e77faeba (diff)
downloadlibpinyin-d5fba5d98c24c16e0142810c0b49ec7e4d212799.tar.gz
libpinyin-d5fba5d98c24c16e0142810c0b49ec7e4d212799.tar.xz
libpinyin-d5fba5d98c24c16e0142810c0b49ec7e4d212799.zip
rename result_string variable to tmp_string
Diffstat (limited to 'utils/segment')
-rw-r--r--utils/segment/ngseg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/segment/ngseg.cpp b/utils/segment/ngseg.cpp
index 87814bb..748ca01 100644
--- a/utils/segment/ngseg.cpp
+++ b/utils/segment/ngseg.cpp
@@ -70,11 +70,11 @@ bool deal_with_segmentable(GArray * current_utf16){
if (result_string)
printf("%s\n", result_string);
else {
- char * result_string = g_utf16_to_utf8
+ char * tmp_string = g_utf16_to_utf8
( (utf16_t *) current_utf16->data, current_utf16->len,
NULL, NULL, NULL);
fprintf(stderr, "Un-segmentable sentence encountered:%s.\n",
- result_string);
+ tmp_string);
g_array_free(results, TRUE);
return false;
}