mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Make use of TALLOC_ZERO_P
This commit is contained in:
parent
13c44dec54
commit
2009229c84
@ -464,13 +464,11 @@ struct cli_state *cli_initialise(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
cli = talloc(NULL, struct cli_state);
|
||||
cli = TALLOC_ZERO_P(NULL, struct cli_state);
|
||||
if (!cli) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ZERO_STRUCTP(cli);
|
||||
|
||||
cli->port = 0;
|
||||
cli->fd = -1;
|
||||
cli->cnum = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user