summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-11-24 14:51:02 +0000
committerChristian Ambach <ambi@samba.org>2013-03-25 19:42:30 +0100
commitbbb4068c933ecc043025633a13c62bf04eaf6d49 (patch)
tree7dd0d1721cca725271b02899618ca12c91dbb2b4 /source3
parent30adf0cdbae6d9aaf2e72513d9c33267248f20c0 (diff)
downloadsamba-bbb4068c933ecc043025633a13c62bf04eaf6d49.tar.gz
samba-bbb4068c933ecc043025633a13c62bf04eaf6d49.tar.bz2
samba-bbb4068c933ecc043025633a13c62bf04eaf6d49.zip
dbwrap: Use tdb_null in db_ctdb_delete
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Mon Mar 25 19:42:30 CET 2013 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index a6f49b80c0..399c8503d9 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -912,7 +912,6 @@ static NTSTATUS db_ctdb_send_schedule_for_deletion(struct db_record *rec)
static NTSTATUS db_ctdb_delete(struct db_record *rec)
{
- TDB_DATA data;
NTSTATUS status;
/*
@@ -920,9 +919,7 @@ static NTSTATUS db_ctdb_delete(struct db_record *rec)
* tdb-level cleanup
*/
- ZERO_STRUCT(data);
-
- status = db_ctdb_store(rec, data, 0);
+ status = db_ctdb_store(rec, tdb_null, 0);
if (!NT_STATUS_IS_OK(status)) {
return status;
}