aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-dbhash.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-07-28 06:14:12 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-07-28 06:14:12 +0800
commit216e27b0125a9ad48694066c34a5bdec58b9c6ba (patch)
tree2a45b491bee0f5ffde41115322f018ba1471fd60 /e-util/e-dbhash.c
parentb5599101cc489814899bccd7bc3fff0052b878dd (diff)
downloadgsoc2013-evolution-216e27b0125a9ad48694066c34a5bdec58b9c6ba.tar
gsoc2013-evolution-216e27b0125a9ad48694066c34a5bdec58b9c6ba.tar.gz
gsoc2013-evolution-216e27b0125a9ad48694066c34a5bdec58b9c6ba.tar.bz2
gsoc2013-evolution-216e27b0125a9ad48694066c34a5bdec58b9c6ba.tar.lz
gsoc2013-evolution-216e27b0125a9ad48694066c34a5bdec58b9c6ba.tar.xz
gsoc2013-evolution-216e27b0125a9ad48694066c34a5bdec58b9c6ba.tar.zst
gsoc2013-evolution-216e27b0125a9ad48694066c34a5bdec58b9c6ba.zip
memset everything to 0 (md5_to_dbt): ditto
2001-07-27 JP Rosevear <jpr@ximian.com> * e-dbhash.c (string_to_dbt): memset everything to 0 (md5_to_dbt): ditto svn path=/trunk/; revision=11462
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;
}