From: F. Aragon Date: Fri, 29 Jun 2018 14:51:08 +0000 (+0200) Subject: nhrpd: uninitialized variable (Clang scan) X-Git-Tag: frr-6.1-dev~224^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0a939f4f24fa34fea688482fbf57fb16eaf2a081;p=matthieu%2Ffrr.git 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 --- 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);