mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r16307: Make sure we know we must pass a valid pointer here.
Klocwork #1129.
Jeremy.
(This used to be commit e8d86362ba
)
This commit is contained in:
parent
3a8bf11ae3
commit
a90026e7a6
@ -454,9 +454,8 @@ static int delete_posix_lock_entry(files_struct *fsp, SMB_OFF_T start, SMB_OFF_T
|
||||
entry->start == start &&
|
||||
entry->size == size) {
|
||||
|
||||
/* Make a copy if requested. */
|
||||
if (pl)
|
||||
*pl = *entry;
|
||||
/* Make a copy */
|
||||
*pl = *entry;
|
||||
|
||||
/* Found it - delete it. */
|
||||
if (count == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user