From 47ecc563839b54a3ad188899a88a951eab67fef5 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 11:08:56 +0200 Subject: [PATCH] snmp plugin: remove statement with no effect res has local scope, and we return immediately after. --- src/snmp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/snmp.c b/src/snmp.c index 0e2af3be..31beee05 100644 --- 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); -- 2.30.2