summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-10-09 15:20:49 +0800
committerPeng Wu <alexepico@gmail.com>2013-10-09 15:20:49 +0800
commit8c4416a0b02ee81925ab200be91e6a0a3de016fa (patch)
treedc671f4f57092cb58f198b6df153c41b32c87835
parent5809122820407c47dcccaa0499ff92e64f669499 (diff)
downloadlibpinyin-8c4416a0b02ee81925ab200be91e6a0a3de016fa.tar.gz
libpinyin-8c4416a0b02ee81925ab200be91e6a0a3de016fa.tar.xz
libpinyin-8c4416a0b02ee81925ab200be91e6a0a3de016fa.zip
fixes mergeseq.cpp
-rw-r--r--utils/segment/mergeseq.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/segment/mergeseq.cpp b/utils/segment/mergeseq.cpp
index 1a26064..c428b9a 100644
--- a/utils/segment/mergeseq.cpp
+++ b/utils/segment/mergeseq.cpp
@@ -32,7 +32,6 @@ void print_help(){
}
-static gboolean gen_extra_enter = FALSE;
static gchar * outputfile = NULL;
static GOptionEntry entries[] =
@@ -269,6 +268,11 @@ int main(int argc, char * argv[]){
linebuf, output);
}
+ /* append one null token for EOF. */
+ feed_line(&phrase_table, &phrase_index,
+ unichars, tokeninfos,
+ "0 ", output);
+
g_array_free(unichars, TRUE);
g_array_free(tokeninfos, TRUE);
free(linebuf);