aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-dbhash.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-11-10 06:18:17 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-11-10 06:18:17 +0800
commitb24160aa2cedb773bbd6855144bfaa4aaa449bf4 (patch)
tree8ec0b9953af086ad549e1ca5464582b49b67cc03 /e-util/e-dbhash.c
parent9a3020083a266872cdf4ef62dc3cfc805db06c92 (diff)
downloadgsoc2013-evolution-b24160aa2cedb773bbd6855144bfaa4aaa449bf4.tar
gsoc2013-evolution-b24160aa2cedb773bbd6855144bfaa4aaa449bf4.tar.gz
gsoc2013-evolution-b24160aa2cedb773bbd6855144bfaa4aaa449bf4.tar.bz2
gsoc2013-evolution-b24160aa2cedb773bbd6855144bfaa4aaa449bf4.tar.lz
gsoc2013-evolution-b24160aa2cedb773bbd6855144bfaa4aaa449bf4.tar.xz
gsoc2013-evolution-b24160aa2cedb773bbd6855144bfaa4aaa449bf4.tar.zst
gsoc2013-evolution-b24160aa2cedb773bbd6855144bfaa4aaa449bf4.zip
oops thats func not *func
2000-11-09 JP Rosevear <jpr@helixcode.com> * e-dbhash.h: oops thats func not *func * e-dbhash.c (e_dbhash_foreach_key): Memset the data DBT to 0 svn path=/trunk/; revision=6521
Diffstat (limited to 'e-util/e-dbhash.c')
-rw-r--r--e-util/e-dbhash.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/e-util/e-dbhash.c b/e-util/e-dbhash.c
index 57cf8ff9c1..2bcedb8676 100644
--- a/e-util/e-dbhash.c
+++ b/e-util/e-dbhash.c
@@ -80,8 +80,6 @@ e_dbhash_add (EDbHash *edbh, const gchar *key, const gchar *data)
/* Add to database */
db->put (db, &dkey, &ddata, 0);
-
- g_free (local_hash);
}
void
@@ -104,7 +102,7 @@ e_dbhash_remove (EDbHash *edbh, const char *key)
}
void
-e_dbhash_foreach_key (EDbHash *edbh, EDbHashFunc *func, gpointer user_data)
+e_dbhash_foreach_key (EDbHash *edbh, EDbHashFunc func, gpointer user_data)
{
DB *db;
DBT dkey;
@@ -145,6 +143,7 @@ e_dbhash_compare (EDbHash *edbh, const char *key, const char *compare_data)
string_to_dbt (key, &dkey);
/* Lookup in database */
+ memset (&ddata, 0, sizeof (DBT));
db->get (db, &dkey, &ddata, 0);
/* Compare */