summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2020-10-26 13:00:06 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2020-10-26 13:00:06 +0000
commit2553062c6bcf4f63ab6f4ab6194e6f9631ade650 (patch)
treedfe3a1d40d55f13af040aa732399b82547d21967 /lib
parentae19573250dbc657eb414aaefb660e3a0b310d8a (diff)
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@
Diffstat (limited to 'lib')
-rw-r--r--lib/libagentx/agentx.c2
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;