Always initialise this - it helps callers who use this in a loop...
authorAndrew Bartlett <abartlet@samba.org>
Wed, 7 May 2003 23:09:18 +0000 (23:09 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 May 2003 23:09:18 +0000 (23:09 +0000)
Andrew Bartlett
(This used to be commit 97bc047434284527f25e130a72981da704ed1212)

source3/rpc_client/cli_samr.c

index 767c6a12b25c2c526509838aeecf4d51fcbeb1da..4fe8fba7b0b63e6efc320a441fc587b7af255739 100644 (file)
@@ -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);