summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-04-18 15:02:13 +0800
committerPeng Wu <alexepico@gmail.com>2013-04-18 15:02:13 +0800
commite6a8cf0cc8ad55e11e764e29a6997cce8c7397be (patch)
treef0adfc3302a2e5a51a0e88ede3757f7e47b8ccd7 /utils
parentcb827e2511b9557e41acec74a3d6ebcfaed862f8 (diff)
downloadlibpinyin-e6a8cf0cc8ad55e11e764e29a6997cce8c7397be.zip
libpinyin-e6a8cf0cc8ad55e11e764e29a6997cce8c7397be.tar.gz
libpinyin-e6a8cf0cc8ad55e11e764e29a6997cce8c7397be.tar.xz
fixes mergeseq.cpp
Diffstat (limited to 'utils')
-rw-r--r--utils/segment/mergeseq.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/segment/mergeseq.cpp b/utils/segment/mergeseq.cpp
index 1c724f0..1a26064 100644
--- a/utils/segment/mergeseq.cpp
+++ b/utils/segment/mergeseq.cpp
@@ -160,6 +160,10 @@ bool feed_line(FacadePhraseTable2 * phrase_table,
assert(0 == unichars->len);
assert(0 == tokeninfos->len);
+
+ /* restore the null token line. */
+ fprintf(output, "%s\n", linebuf);
+
return false;
}