From: Ruben Kerkhof Date: Tue, 29 May 2018 08:29:14 +0000 (+0200) Subject: snmp plugin: fix scan-build warning X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=6111d6c23af6e3a4cde8830dc79a117aeac2e4de;hp=f2dfcc7bea1dd34d6679d334e2c94854d0029e7b 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. --- 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);