mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libcli:security: Prefer explicit initialization to ZERO_STRUCTP()
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
9846da6f4b
commit
b208c8e848
@ -146,7 +146,7 @@ bool dom_sid_parse_endp(const char *sidstr,struct dom_sid *sidout,
|
||||
uint64_t conv;
|
||||
int error = 0;
|
||||
|
||||
ZERO_STRUCTP(sidout);
|
||||
*sidout = (struct dom_sid) {};
|
||||
|
||||
if ((sidstr[0] != 'S' && sidstr[0] != 's') || sidstr[1] != '-') {
|
||||
goto format_error;
|
||||
|
Loading…
Reference in New Issue
Block a user