From 5f86a4a85f4f3e738e1e0fa572d3931f31931d43 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 7 May 2003 23:09:18 +0000 Subject: Always initialise this - it helps callers who use this in a loop... Andrew Bartlett (This used to be commit 97bc047434284527f25e130a72981da704ed1212) --- source3/rpc_client/cli_samr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c index 767c6a12b2..4fe8fba7b0 100644 --- a/source3/rpc_client/cli_samr.c +++ b/source3/rpc_client/cli_samr.c @@ -1000,6 +1000,8 @@ NTSTATUS cli_samr_query_dispinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx, ZERO_STRUCT(q); ZERO_STRUCT(r); + *num_entries = 0; + /* Initialise parse structures */ prs_init(&qbuf, MAX_PDU_FRAG_LEN, mem_ctx, MARSHALL); -- cgit