From 66eb528bfb26747e622e3b78dba606bff2b529ca Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 28 Feb 2013 12:32:46 +0800 Subject: fixes check_format --- src/pinyin.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/pinyin.cpp') diff --git a/src/pinyin.cpp b/src/pinyin.cpp index fa18db7..0549f7c 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -89,6 +89,16 @@ static bool check_format(const char * userdir){ g_free(filename); } + filename = g_build_filename + (userdir, "user_pinyin_index.bin", NULL); + unlink(filename); + g_free(filename); + + filename = g_build_filename + (userdir, "user_phrase_index.bin", NULL); + unlink(filename); + g_free(filename); + filename = g_build_filename (userdir, "user.db", NULL); unlink(filename); -- cgit