1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3: Remove a pointless memset

We are assigning the complete structure now (we used to assign individual
fields), so this is obsolete.
This commit is contained in:
Volker Lendecke 2009-11-16 08:54:55 +01:00
parent f0a933d140
commit 91ccaa87da

View File

@ -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;