From 0a939f4f24fa34fea688482fbf57fb16eaf2a081 Mon Sep 17 00:00:00 2001 From: "F. Aragon" Date: Fri, 29 Jun 2018 16:51:08 +0200 Subject: [PATCH] nhrpd: uninitialized variable (Clang scan) This correction fixes two bugs detected by Clang scan: Bug Group: Logic error Bug Type: Assigned value is garbage or undefined File: nhrpd/vici.c Function: vici_parse_message Lines: 100, 105 Signed-off-by: F. Aragon --- nhrpd/vici.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nhrpd/vici.c b/nhrpd/vici.c index e6111f9d71..3bb0d8308e 100644 --- a/nhrpd/vici.c +++ b/nhrpd/vici.c @@ -287,6 +287,7 @@ static void vici_recv_sa(struct vici_conn *vici, struct zbuf *msg, int event) char buf[32]; struct handle_sa_ctx ctx = { .event = event, + .msgctx.nsections = 0 }; vici_parse_message(vici, msg, parse_sa_message, &ctx.msgctx); -- 2.39.5