summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;