]> git.puffer.fish Git - mirror/frr.git/commitdiff
nhrpd: uninitialized variable (Clang scan) 2609/head
authorF. Aragon <paco@voltanet.io>
Mon, 2 Jul 2018 18:07:59 +0000 (20:07 +0200)
committerF. Aragon <paco@voltanet.io>
Mon, 2 Jul 2018 18:07:59 +0000 (20:07 +0200)
Fix over 0a939f4f24fa34fea688482fbf57fb16eaf2a081 (there was a case not
covered by previous fix)

Signed-off-by: F. Aragon <paco@voltanet.io>
nhrpd/vici.c

index 3bb0d8308ecbb94c1574eadbf57e7ca486985883..eb3827a12fdda935fea7773bd03999e0da29fc14 100644 (file)
@@ -306,7 +306,7 @@ static void vici_recv_message(struct vici_conn *vici, struct zbuf *msg)
        uint32_t msglen;
        uint8_t msgtype;
        struct blob name;
-       struct vici_message_ctx ctx;
+       struct vici_message_ctx ctx = { .nsections = 0 };
 
        msglen = zbuf_get_be32(msg);
        msgtype = zbuf_get8(msg);