From 07e01f8405f2bd3f0ee521e8aebf2c647052104f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 7 Jan 2009 06:32:25 +0100 Subject: s4:smbclient: correct initialize smbclient_context Found by valgrind. metze --- source4/client/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/client/client.c b/source4/client/client.c index 13b7053396..018be29761 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -3190,7 +3190,7 @@ static int do_message_op(const char *netbios_name, const char *desthost, exit(1); } - ctx = talloc(mem_ctx, struct smbclient_context); + ctx = talloc_zero(mem_ctx, struct smbclient_context); ctx->io_bufsize = 64512; pc = poptGetContext("smbclient", argc, (const char **) argv, long_options, 0); -- cgit