summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2022-06-17 09:38:24 +0200
committerRalph Boehme <slow@samba.org>2022-07-25 12:04:33 +0000
commitb4a3c22acd5fcc0233b72ecde4afe1d916958f81 (patch)
treeb4016155f965385848eba023e7efa4f2dca1878b
parent58d7b76a0acb2c6770fe8c5f702853cc518c43b0 (diff)
downloadsamba-b4a3c22acd5fcc0233b72ecde4afe1d916958f81.tar.gz
smbd: Avoid a "? True : False"
Just came across this, looked weird... Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--source3/smbd/smb2_trans2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c
index cc6dc3adcf7..512df98f100 100644
--- a/source3/smbd/smb2_trans2.c
+++ b/source3/smbd/smb2_trans2.c
@@ -5153,7 +5153,7 @@ static NTSTATUS smb_file_rename_information(connection_struct *conn,
return NT_STATUS_INVALID_PARAMETER;
}
- overwrite = (CVAL(pdata,0) ? True : False);
+ overwrite = (CVAL(pdata,0) != 0);
root_fid = IVAL(pdata,4);
len = IVAL(pdata,8);