summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-16 22:29:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:32 -0500
commita90026e7a68398a7f9c38dc3cd1dad193466b8af (patch)
tree672a11a1317502050742fa97068110d50a76a948 /source3/locking
parent3a8bf11ae341c34db61ef35cbdba6ff835940c79 (diff)
downloadsamba-a90026e7a68398a7f9c38dc3cd1dad193466b8af.tar.gz
samba-a90026e7a68398a7f9c38dc3cd1dad193466b8af.tar.bz2
samba-a90026e7a68398a7f9c38dc3cd1dad193466b8af.zip
r16307: Make sure we know we must pass a valid pointer here.
Klocwork #1129. Jeremy. (This used to be commit e8d86362ba8762a5e4180e7320f5ac8bb37c203d)
Diffstat (limited to 'source3/locking')
-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) {