From 216e27b0125a9ad48694066c34a5bdec58b9c6ba Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 27 Jul 2001 22:14:12 +0000 Subject: memset everything to 0 (md5_to_dbt): ditto 2001-07-27 JP Rosevear * e-dbhash.c (string_to_dbt): memset everything to 0 (md5_to_dbt): ditto svn path=/trunk/; revision=11462 --- e-util/e-dbhash.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'e-util/e-dbhash.c') 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; } -- cgit