From 3b3c44b51c30146e88805a67f1ba548107bc3c57 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 22 Oct 2001 13:54:12 +0000 Subject: null out DBT memory prior to usage (from Edd Dumbill ) 2001-10-22 JP Rosevear * e-dbhash.c (e_dbhash_foreach_key): null out DBT memory prior to usage (from Edd Dumbill ) svn path=/trunk/; revision=13869 --- 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 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) { -- cgit v1.2.3