summaryrefslogtreecommitdiff
path: root/lib/tdb/common
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-02-16 13:39:28 +0100
committerStefan Metzmacher <metze@samba.org>2013-02-19 15:46:45 +0100
commit542400a966039178effd6c8da932ed3a8d749131 (patch)
tree532b0199f98cadf404f59bbff2a6cea07213bbcf /lib/tdb/common
parent68559b787e7c9a83e055493bde638ec02e1097d1 (diff)
downloadsamba-542400a966039178effd6c8da932ed3a8d749131.tar.gz
samba-542400a966039178effd6c8da932ed3a8d749131.tar.bz2
samba-542400a966039178effd6c8da932ed3a8d749131.zip
tdb: Use tdb_null in freelistcheck
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/tdb/common')
-rw-r--r--lib/tdb/common/freelistcheck.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/tdb/common/freelistcheck.c b/lib/tdb/common/freelistcheck.c
index 3be7cfd4ba..c6bfeaa41b 100644
--- a/lib/tdb/common/freelistcheck.c
+++ b/lib/tdb/common/freelistcheck.c
@@ -35,12 +35,11 @@
static int seen_insert(struct tdb_context *mem_tdb, tdb_off_t rec_ptr)
{
- TDB_DATA key, data;
+ TDB_DATA key;
- memset(&data, '\0', sizeof(data));
key.dptr = (unsigned char *)&rec_ptr;
key.dsize = sizeof(rec_ptr);
- return tdb_store(mem_tdb, key, data, TDB_INSERT);
+ return tdb_store(mem_tdb, key, tdb_null, TDB_INSERT);
}
_PUBLIC_ int tdb_validate_freelist(struct tdb_context *tdb, int *pnum_entries)