From e312cddafd7e00680dd059fad7ef7e5ecdbbb484 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 25 Apr 2006 06:53:28 +0000 Subject: [PATCH] r15225: Use talloc_zero() to avoid use of uninitialised values later on. Andrew Bartlett --- source/libcli/finddcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libcli/finddcs.c b/source/libcli/finddcs.c index 9ed20b77ba0..aa755b57498 100644 --- a/source/libcli/finddcs.c +++ b/source/libcli/finddcs.c @@ -70,7 +70,7 @@ struct composite_context *finddcs_send(TALLOC_CTX *mem_ctx, struct finddcs_state *state; struct nbt_name name; - result = talloc(mem_ctx, struct composite_context); + result = talloc_zero(mem_ctx, struct composite_context); if (result == NULL) goto failed; result->state = COMPOSITE_STATE_IN_PROGRESS; result->async.fn = NULL; -- 2.34.1