1
0
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:
Volker Lendecke 2008-09-13 19:41:42 +02:00
parent 13c44dec54
commit 2009229c84

View File

@ -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;