summaryrefslogtreecommitdiffstats
path: root/utils/storage/gen_binary_files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/storage/gen_binary_files.cpp')
-rw-r--r--utils/storage/gen_binary_files.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/storage/gen_binary_files.cpp b/utils/storage/gen_binary_files.cpp
index fe73d75..32ca8f1 100644
--- a/utils/storage/gen_binary_files.cpp
+++ b/utils/storage/gen_binary_files.cpp
@@ -98,13 +98,12 @@ int main(int argc, char * argv[]){
SystemTableInfo2 system_table_info;
- gchar * filename = g_build_filename(table_dir, SYSTEM_TABLE_INFO, NULL);
+ const gchar * filename = SYSTEM_TABLE_INFO;
bool retval = system_table_info.load(filename);
if (!retval) {
fprintf(stderr, "load table.conf failed.\n");
exit(ENOENT);
}
- g_free(filename);
const pinyin_table_info_t * phrase_files =
system_table_info.get_default_tables();