]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Avoid a "? True : False"
authorVolker Lendecke <vl@samba.org>
Fri, 17 Jun 2022 07:38:24 +0000 (09:38 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 25 Jul 2022 12:04:33 +0000 (12:04 +0000)
Just came across this, looked weird...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_trans2.c

index cc6dc3adcf7ec82d8e7039b6ff106a23f0c1f4b8..512df98f100e2633ab97305c4019e898640d9fd5 100644 (file)
@@ -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);