Make use of TALLOC_ZERO_P
authorVolker Lendecke <vl@samba.org>
Sat, 13 Sep 2008 17:41:42 +0000 (19:41 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 21 Sep 2008 14:32:40 +0000 (16:32 +0200)
source3/libsmb/clientgen.c

index 9d65fb4e94423ccc19bc2a7428693a90387e1b46..8a5aedfde5697d0907d931c15e10cc3e2595e626 100644 (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;