projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2dfcc7
)
snmp plugin: fix scan-build warning
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 29 May 2018 08:29:14 +0000
(10:29 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 29 May 2018 08:29:14 +0000
(10:29 +0200)
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
patch
|
blob
|
history
diff --git
a/src/snmp.c
b/src/snmp.c
index
3e5e381
..
7c3ebc8
100644
(file)
--- 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);