summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-09-13 19:41:42 +0200
committerVolker Lendecke <vl@samba.org>2008-09-21 16:32:40 +0200
commit2009229c84e101bf7549276a7a5ac0cbe15d661c (patch)
tree435d980761d92243a684280f9918c6e1e29ffa18
parent13c44dec5445d43d1a0c8625523896837374c06e (diff)
downloadsamba-2009229c84e101bf7549276a7a5ac0cbe15d661c.tar.gz
samba-2009229c84e101bf7549276a7a5ac0cbe15d661c.tar.bz2
samba-2009229c84e101bf7549276a7a5ac0cbe15d661c.zip
Make use of TALLOC_ZERO_P
-rw-r--r--source3/libsmb/clientgen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 9d65fb4e94..8a5aedfde5 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -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;