summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0540d2)
raw | patch | inline | side by side (parent: d0540d2)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 09:08:56 +0000 (11:08 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 09:08:56 +0000 (11:08 +0200) |
res has local scope, and we return immediately after.
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index 0e2af3beab6a5c94c30b3096ef940b5abdbd7152..31beee05375ba0e8ae50d1ddf2550a3cc607a88a 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
@@ -1748,7 +1748,6 @@ static int csnmp_read_value (host_definition_t *host, data_definition_t *data)
if (res != NULL)
snmp_free_pdu (res);
- res = NULL;
sfree (errstr);
sfree (vl.values);