aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-dbhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-dbhash.c')
-rw-r--r--e-util/e-dbhash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-dbhash.c b/e-util/e-dbhash.c
index 223913d02e..7ac5dd0d8c 100644
--- a/e-util/e-dbhash.c
+++ b/e-util/e-dbhash.c
@@ -68,6 +68,7 @@ e_dbhash_new (const char *filename)
static void
string_to_dbt(const char *str, DBT *dbt)
{
+ memset (dbt, 0, sizeof (DBT));
dbt->data = (void*)str;
dbt->size = strlen (str) + 1;
}
@@ -75,6 +76,7 @@ string_to_dbt(const char *str, DBT *dbt)
static void
md5_to_dbt(const char str[16], DBT *dbt)
{
+ memset (dbt, 0, sizeof (DBT));
dbt->data = (void*)str;
dbt->size = 16;
}