summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-06 12:00:49 +0200
committerVolker Lendecke <vl@samba.org>2009-05-06 12:01:30 +0200
commited88ff18ddd4267eaecd11140ebcb5a59163c53f (patch)
treea014afa341f3b58354c4d079ffe8425238d00def /source3/locking
parentd77c45675744895b01d905f7f27ae55e64264c26 (diff)
downloadsamba-ed88ff18ddd4267eaecd11140ebcb5a59163c53f.tar.gz
samba-ed88ff18ddd4267eaecd11140ebcb5a59163c53f.tar.bz2
samba-ed88ff18ddd4267eaecd11140ebcb5a59163c53f.zip
Fix Coverity ID 897: REVERSE_INULL
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 70841225a7..dd735be88a 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -1397,11 +1397,11 @@ bool set_delete_on_close(files_struct *fsp, bool delete_on_close, const UNIX_USE
if (fsp->conn->admin_user) {
tok_copy = copy_unix_token(lck, tok);
- tok_copy->uid = (uid_t)0;
if (tok_copy == NULL) {
TALLOC_FREE(lck);
return false;
}
+ tok_copy->uid = (uid_t)0;
tok = tok_copy;
}