From 6111d6c23af6e3a4cde8830dc79a117aeac2e4de Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 29 May 2018 10:29:14 +0200 Subject: [PATCH] snmp plugin: fix scan-build warning CC src/snmp_la-snmp.lo src/snmp.c:592:5: warning: Value stored to 'status' is never read status = 0; ^ ~ 1 warning generated. --- src/snmp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/snmp.c b/src/snmp.c index 3e5e3819..7c3ebc82 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -589,7 +589,6 @@ static int csnmp_config_add_host(oconfig_item_t *ci) { for (int i = 0; i < ci->children_num; i++) { oconfig_item_t *option = ci->children + i; - status = 0; if (strcasecmp("Address", option->key) == 0) status = cf_util_get_string(option, &hd->address); -- 2.11.0