mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
passdb: Use struct allocation
Give the compiler more info Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
1bb16ff4e2
commit
21359f4fc6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user