diff options
| author | F. Aragon <paco@voltanet.io> | 2018-06-29 16:51:08 +0200 |
|---|---|---|
| committer | F. Aragon <paco@voltanet.io> | 2018-06-29 17:40:45 +0200 |
| commit | 0a939f4f24fa34fea688482fbf57fb16eaf2a081 (patch) | |
| tree | 3496a55b222229cd1bd6b41c01565fc6d1c3cf41 /nhrpd/vici.c | |
| parent | 62a9c814e1721a76b251d7c8861c51f196458695 (diff) | |
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 <paco@voltanet.io>
Diffstat (limited to 'nhrpd/vici.c')
| -rw-r--r-- | nhrpd/vici.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
