]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Simplify lease_match() a bit
authorVolker Lendecke <vl@samba.org>
Fri, 27 Jul 2018 12:16:20 +0000 (14:16 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 7 Sep 2018 15:26:18 +0000 (17:26 +0200)
This has been implicitly initialized to 0 with the explicit struct
initializer above.

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

index cbabea351579cd1227b6a108cad6969ffdb5c3b7..6bfd5ba1371c6cb098654825fcc7cd42731c3ca5 100644 (file)
@@ -4924,8 +4924,6 @@ static NTSTATUS lease_match(connection_struct *conn,
        state.file_existed = VALID_STAT(fname->st);
        if (state.file_existed) {
                state.id = vfs_file_id_from_sbuf(conn, &fname->st);
-       } else {
-               memset(&state.id, '\0', sizeof(state.id));
        }
 
        status = leases_db_parse(&sconn->client->connections->smb2.client.guid,