git.samba.org
/
garming
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c44de
)
Make use of TALLOC_ZERO_P
author
Volker Lendecke
<vl@samba.org>
Sat, 13 Sep 2008 17:41:42 +0000
(19:41 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 21 Sep 2008 14:32:40 +0000
(16:32 +0200)
source3/libsmb/clientgen.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clientgen.c
b/source3/libsmb/clientgen.c
index 9d65fb4e94423ccc19bc2a7428693a90387e1b46..8a5aedfde5697d0907d931c15e10cc3e2595e626 100644
(file)
--- 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;