summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-05-07 23:09:18 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-05-07 23:09:18 +0000
commit5f86a4a85f4f3e738e1e0fa572d3931f31931d43 (patch)
treea518d573f95d2942aa5ff424d516272c410d096a /source3
parenta0af88e8c196eebcafdd321e6d7e88ba83609268 (diff)
downloadsamba-5f86a4a85f4f3e738e1e0fa572d3931f31931d43.tar.gz
samba-5f86a4a85f4f3e738e1e0fa572d3931f31931d43.tar.bz2
samba-5f86a4a85f4f3e738e1e0fa572d3931f31931d43.zip
Always initialise this - it helps callers who use this in a loop...
Andrew Bartlett (This used to be commit 97bc047434284527f25e130a72981da704ed1212)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_samr.c2
1 files changed, 2 insertions, 0 deletions
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);