aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-dbhash.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index d9eede4439..d69ef2fe69 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-27 JP Rosevear <jpr@ximian.com>
+
+ * e-dbhash.c (string_to_dbt): memset everything to 0
+ (md5_to_dbt): ditto
+
2001-07-20 Rodrigo Moya <rodrigo@ximian.com>
* e-categories-config.c (initialize_categories_config): use the 2
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;
}