summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-16 08:54:55 +0100
committerVolker Lendecke <vl@samba.org>2009-11-21 11:57:07 +0100
commit91ccaa87da9a5f8148636b0771fe1c67317187d3 (patch)
treeba674e193af2a479ee6889c9f51a76d511d8f16f /source3
parentf0a933d1408678fabc856e89a5aaebb792047de3 (diff)
downloadsamba-91ccaa87da9a5f8148636b0771fe1c67317187d3.tar.gz
samba-91ccaa87da9a5f8148636b0771fe1c67317187d3.tar.bz2
samba-91ccaa87da9a5f8148636b0771fe1c67317187d3.zip
s3: Remove a pointless memset
We are assigning the complete structure now (we used to assign individual fields), so this is obsolete.
Diffstat (limited to 'source3')
-rw-r--r--source3/locking/brlock.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index d3f5e61f7d..b021293c7b 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -1810,7 +1810,6 @@ static struct byte_range_lock *brl_get_locks_internal(TALLOC_CTX *mem_ctx,
br_lck->fsp = fsp;
br_lck->num_locks = 0;
br_lck->modified = False;
- memset(&br_lck->key, '\0', sizeof(struct file_id));
br_lck->key = fsp->file_id;
key.dptr = (uint8 *)&br_lck->key;