diff options
author | 2020-10-26 13:00:05 +0000 | |
---|---|---|
committer | 2020-10-26 13:00:05 +0000 | |
commit | 1f8cf5e255d6c7161d04943afa3ceeaa2d6602a1 (patch) | |
tree | bd2e7f1095c93389804723a5a69a716ed989d719 | |
parent | catch unset error when validation fails. (diff) | |
download | wireguard-openbsd-1f8cf5e255d6c7161d04943afa3ceeaa2d6602a1.tar.xz wireguard-openbsd-1f8cf5e255d6c7161d04943afa3ceeaa2d6602a1.zip |
Initialize srl to NULL to silence gcc. There is no case where this is
uninitialized and clang doesn't trip over this.
Pointed out by and OK stsp@
-rw-r--r-- | lib/libagentx/agentx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libagentx/agentx.c b/lib/libagentx/agentx.c index c3cb08f5d10..2e70a502f8a 100644 --- a/lib/libagentx/agentx.c +++ b/lib/libagentx/agentx.c @@ -99,7 +99,7 @@ agentx_recv(struct agentx *ax) struct agentx_pdu_header header; struct agentx_pdu_response *response; struct agentx_varbind *varbind; - struct agentx_pdu_searchrangelist *srl; + struct agentx_pdu_searchrangelist *srl = NULL; struct agentx_pdu_varbindlist *vbl; struct agentx_searchrange *sr; size_t rbsize, packetidx = 0, i, rawlen; |