From: Florian Forster Date: Fri, 19 Jun 2015 14:26:12 +0000 (+0200) Subject: openvpn plugin: Fix "Dead assignment" warning. X-Git-Tag: collectd-5.5.1~6^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b7f9a3c02d885e0fbe8fb7aac5c9a51b5771a9d3;p=collectd.git openvpn plugin: Fix "Dead assignment" warning. --- diff --git a/src/openvpn.c b/src/openvpn.c index 65440d5c..5060425e 100644 --- a/src/openvpn.c +++ b/src/openvpn.c @@ -459,6 +459,8 @@ static int openvpn_read (void) /* call the right read function for every status entry in the list */ for (i = 0; i < vpn_num; i++) { + int vpn_read = 0; + fh = fopen (vpn_list[i]->file, "r"); if (fh == NULL) {