diff options
author | JP Rosevear <jpr@ximian.com> | 2001-07-28 06:14:12 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-07-28 06:14:12 +0800 |
commit | 216e27b0125a9ad48694066c34a5bdec58b9c6ba (patch) | |
tree | 2a45b491bee0f5ffde41115322f018ba1471fd60 /e-util | |
parent | b5599101cc489814899bccd7bc3fff0052b878dd (diff) | |
download | gsoc2013-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')
-rw-r--r-- | e-util/ChangeLog | 5 | ||||
-rw-r--r-- | e-util/e-dbhash.c | 2 |
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; } |