1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

smbd: Use a struct initializer

Saves a few bytes of .text

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Volker Lendecke 2015-08-12 08:58:31 +02:00 committed by Martin Schwenke
parent ba116fa7cd
commit f85c2a6852

View File

@ -2694,14 +2694,15 @@ static canon_ace *canonicalise_acl(struct connection_struct *conn,
if ((ace = talloc(talloc_tos(), canon_ace)) == NULL)
goto fail;
ZERO_STRUCTP(ace);
ace->type = tagtype;
ace->perms = convert_permset_to_mode_t(permset);
ace->attr = ALLOW_ACE;
ace->trustee = sid;
ace->unix_ug = unix_ug;
ace->owner_type = owner_type;
ace->ace_flags = get_pai_flags(pal, ace, is_default_acl);
*ace = (canon_ace) {
.type = tagtype,
.perms = convert_permset_to_mode_t(permset),
.attr = ALLOW_ACE,
.trustee = sid,
.unix_ug = unix_ug,
.owner_type = owner_type,
.ace_flags = get_pai_flags(pal, ace, is_default_acl)
};
DLIST_ADD(l_head, ace);
}