summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/locking/posix.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/locking/posix.c b/source3/locking/posix.c
index e7075c57a6..4a5f59b622 100644
--- a/source3/locking/posix.c
+++ b/source3/locking/posix.c
@@ -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) {