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.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/storage/chewing_large_table2_bdb.cpp b/src/storage/chewing_large_table2_bdb.cpp
index 4813bff..66ea188 100644
--- a/src/storage/chewing_large_table2_bdb.cpp
+++ b/src/storage/chewing_large_table2_bdb.cpp
@@ -402,6 +402,7 @@ bool ChewingLargeTable2::mask_out(phrase_token_t mask,
memset(&db_data, 0, sizeof(DBT));
/* Iterate over the database, retrieving each record in turn. */
+ int ret = 0;
while((ret = cursorp->c_get(cursorp, &db_key, &db_data, DB_NEXT)) == 0) {
int phrase_length = db_key.size / sizeof(ChewingKey);