summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_large_table2_bdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/chewing_large_table2_bdb.cpp')
-rw-r--r--src/storage/chewing_large_table2_bdb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storage/chewing_large_table2_bdb.cpp b/src/storage/chewing_large_table2_bdb.cpp
index 6741ffd..9813b57 100644
--- a/src/storage/chewing_large_table2_bdb.cpp
+++ b/src/storage/chewing_large_table2_bdb.cpp
@@ -448,6 +448,9 @@ bool ChewingLargeTable2::mask_out(phrase_token_t mask,
#undef CASE
+ /* Initialize our DBTs. */
+ memset(&db_key, 0, sizeof(DBT));
+ memset(&db_data, 0, sizeof(DBT));
}
assert(ret == DB_NOTFOUND);