git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68559b7
)
tdb: Use tdb_null in freelistcheck
author
Volker Lendecke
<vl@samba.org>
Sat, 16 Feb 2013 12:39:28 +0000
(13:39 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 19 Feb 2013 14:46:45 +0000
(15:46 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/freelistcheck.c
patch
|
blob
|
history
diff --git
a/lib/tdb/common/freelistcheck.c
b/lib/tdb/common/freelistcheck.c
index 3be7cfd4bab98eec5abff1809bdd299b08cb4eb3..c6bfeaa41bf4af9e03267884c17f958f0c60d24d 100644
(file)
--- 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)