diff options
author | Volker Lendecke <vl@samba.org> | 2013-02-16 13:39:28 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-02-19 15:46:45 +0100 |
commit | 542400a966039178effd6c8da932ed3a8d749131 (patch) | |
tree | 532b0199f98cadf404f59bbff2a6cea07213bbcf /lib/tdb | |
parent | 68559b787e7c9a83e055493bde638ec02e1097d1 (diff) | |
download | samba-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')
-rw-r--r-- | lib/tdb/common/freelistcheck.c | 5 |
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) |