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