diff options
author | JP Rosevear <jpr@ximian.com> | 2001-10-22 21:54:12 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-10-22 21:54:12 +0800 |
commit | 3b3c44b51c30146e88805a67f1ba548107bc3c57 (patch) | |
tree | 912273bb24cd21b8391f9be07bcd7cfe3c30078d /e-util/e-dbhash.c | |
parent | 24f54ce4beac38f72ed9574094125c1f8960fdc6 (diff) | |
download | gsoc2013-evolution-3b3c44b51c30146e88805a67f1ba548107bc3c57.tar.gz gsoc2013-evolution-3b3c44b51c30146e88805a67f1ba548107bc3c57.tar.zst gsoc2013-evolution-3b3c44b51c30146e88805a67f1ba548107bc3c57.zip |
null out DBT memory prior to usage (from Edd Dumbill <edd@usefulinc.com>)
2001-10-22 JP Rosevear <jpr@ximian.com>
* e-dbhash.c (e_dbhash_foreach_key): null out DBT memory prior to
usage (from Edd Dumbill <edd@usefulinc.com>)
svn path=/trunk/; revision=13869
Diffstat (limited to 'e-util/e-dbhash.c')
-rw-r--r-- | e-util/e-dbhash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-dbhash.c b/e-util/e-dbhash.c index 7ac5dd0d8c..209798fbc5 100644 --- a/e-util/e-dbhash.c +++ b/e-util/e-dbhash.c @@ -148,6 +148,8 @@ e_dbhash_foreach_key (EDbHash *edbh, EDbHashFunc func, gpointer user_data) return; } + memset(&dkey, 0, sizeof(DBT)); + memset(&ddata, 0, sizeof(DBT)); db_error = dbc->c_get(dbc, &dkey, &ddata, DB_FIRST); while (db_error == 0) { |