git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0a933d
)
s3: Remove a pointless memset
author
Volker Lendecke
<vl@samba.org>
Mon, 16 Nov 2009 07:54:55 +0000
(08:54 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 21 Nov 2009 10:57:07 +0000
(11:57 +0100)
We are assigning the complete structure now (we used to assign individual
fields), so this is obsolete.
source3/locking/brlock.c
patch
|
blob
|
history
diff --git
a/source3/locking/brlock.c
b/source3/locking/brlock.c
index d3f5e61f7d1c5a06f5b1874a7613b9d1c7c09a18..b021293c7b8c64f3f1260dab7e28ee2cf6f57b72 100644
(file)
--- 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;