From: Volker Lendecke Date: Wed, 6 May 2009 10:00:49 +0000 (+0200) Subject: Fix Coverity ID 897: REVERSE_INULL X-Git-Tag: tdb-1.1.5~716 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed88ff18ddd4267eaecd11140ebcb5a59163c53f;p=thirdparty%2Fsamba.git Fix Coverity ID 897: REVERSE_INULL --- diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 70841225a70..dd735be88a3 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; }