summaryrefslogtreecommitdiffstats
path: root/nhrpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-07-03 00:49:49 +0200
committerGitHub <noreply@github.com>2018-07-03 00:49:49 +0200
commit9e79ccf3dc26f131db7ad8c6ca6eb788934dd664 (patch)
tree0e9cba5382025aed20a28c0f8f868d7a95acce10 /nhrpd
parentMerge pull request #2604 from pacovn/PVS-Studio_odd_operator_usage (diff)
parentnhrpd: uninitialized variable (Clang scan) (diff)
downloadfrr-9e79ccf3dc26f131db7ad8c6ca6eb788934dd664.tar.xz
frr-9e79ccf3dc26f131db7ad8c6ca6eb788934dd664.zip
Merge pull request #2609 from pacovn/clang_scan_nhrpd_vici_initialization
nhrpd: uninitialized variable (Clang scan)
Diffstat (limited to 'nhrpd')
-rw-r--r--nhrpd/vici.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/vici.c b/nhrpd/vici.c
index 3bb0d8308..eb3827a12 100644
--- a/nhrpd/vici.c
+++ b/nhrpd/vici.c
@@ -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);