From: Volker Lendecke Date: Fri, 27 Jul 2018 12:16:20 +0000 (+0200) Subject: smbd: Simplify lease_match() a bit X-Git-Tag: tdb-1.3.17~1684 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45a2e3eb536f07cec1447b2de566c5840cd71074;p=thirdparty%2Fsamba.git smbd: Simplify lease_match() a bit This has been implicitly initialized to 0 with the explicit struct initializer above. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index cbabea35157..6bfd5ba1371 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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,