diff options
author | Peng Wu <alexepico@gmail.com> | 2012-03-05 17:22:22 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-03-05 17:25:44 +0800 |
commit | c71bfd49ed3042c2844b81e76fbf3cde7b0da10e (patch) | |
tree | 893e1f86b468ef581270e7e545bf1455c2970859 /tests/test_pinyin.cpp | |
parent | 5f3b3345937e33438fb505635f2543038fc30cba (diff) | |
download | libpinyin-c71bfd49ed3042c2844b81e76fbf3cde7b0da10e.tar.gz libpinyin-c71bfd49ed3042c2844b81e76fbf3cde7b0da10e.tar.xz libpinyin-c71bfd49ed3042c2844b81e76fbf3cde7b0da10e.zip |
refine test_pinyin.cpp
Diffstat (limited to 'tests/test_pinyin.cpp')
-rw-r--r-- | tests/test_pinyin.cpp | 4 |
1 files 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 ){ |