]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #2609 from pacovn/clang_scan_nhrpd_vici_initialization
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 2 Jul 2018 22:49:49 +0000 (18:49 -0400)
committerGitHub <noreply@github.com>
Mon, 2 Jul 2018 22:49:49 +0000 (18:49 -0400)
nhrpd: uninitialized variable (Clang scan)

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);