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
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
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>)
|
||||
|
||||
2001-10-17 Ettore Perazzoli <ettore@ximian.com>
|
||||
|
||||
* e-dialog-utils.c (e_set_dialog_parent_from_xid): New.
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user