diff options
author | Volker Lendecke <vl@samba.org> | 2020-01-27 17:00:59 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-01-30 12:27:40 +0000 |
commit | 21359f4fc60ed5cd99f85fe96f1b3d59768767fc (patch) | |
tree | 8dc3b3005a8524580b1856a635fd6503d5a1c011 /source3/passdb | |
parent | 1bb16ff4e2dc6ae5fe9461c622fcb2bc9ad6a851 (diff) | |
download | samba-21359f4fc60ed5cd99f85fe96f1b3d59768767fc.tar.gz |
passdb: Use struct allocation
Give the compiler more info
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/machine_sid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/passdb/machine_sid.c b/source3/passdb/machine_sid.c index cdef1d61c97..fa420d8edfe 100644 --- a/source3/passdb/machine_sid.c +++ b/source3/passdb/machine_sid.c @@ -65,11 +65,11 @@ static void generate_random_sid(struct dom_sid *sid) int i; uchar raw_sid_data[12]; - ZERO_STRUCTP(sid); + *sid = (struct dom_sid) { + .sid_rev_num = 1, + .id_auth[5] = 5, + }; - sid->sid_rev_num = 1; - sid->id_auth[5] = 5; - sid->num_auths = 0; sid->sub_auths[sid->num_auths++] = 21; generate_random_buffer(raw_sid_data, 12); |