From c71bfd49ed3042c2844b81e76fbf3cde7b0da10e Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 5 Mar 2012 17:22:22 +0800 Subject: refine test_pinyin.cpp --- tests/test_pinyin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp index afde14f..dc7c366 100644 --- a/tests/test_pinyin.cpp +++ b/tests/test_pinyin.cpp @@ -30,8 +30,8 @@ int main(int argc, char * argv[]){ pinyin_instance_t * instance = pinyin_alloc_instance(context); - char * linebuf = NULL; char * prefixbuf = NULL; - size_t linesize = 0; size_t prefixsize = 0; + char * prefixbuf = NULL; size_t prefixsize = 0; + char * linebuf = NULL; size_t linesize = 0; ssize_t read; while( TRUE ){ -- cgit