From: Andreas Schneider Date: Thu, 10 Jun 2021 06:53:19 +0000 (+0200) Subject: librpc: Make sure num_protocols is initialized X-Git-Tag: tevent-0.11.0~436 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6eff9c413fe4789a061fdde7105d0553a419f59;p=thirdparty%2Fsamba.git librpc: Make sure num_protocols is initialized Found by covscan. Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský Reviewed-by: Noel Power --- 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;