From d6eff9c413fe4789a061fdde7105d0553a419f59 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 10 Jun 2021 08:53:19 +0200 Subject: [PATCH] librpc: Make sure num_protocols is initialized MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Found by covscan. Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský Reviewed-by: Noel Power --- librpc/rpc/binding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index 6588f43cc9d..7a2dcd472ea 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -1430,7 +1430,7 @@ _PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx, struct epm_tower *tower) { const enum epm_protocol *protseq = NULL; - size_t i, num_protocols; + size_t i, num_protocols = 0; struct ndr_syntax_id abstract_syntax; NTSTATUS status; -- 2.47.3