From: Marc Fournier Date: Tue, 26 Jan 2016 11:19:57 +0000 (+0100) Subject: Revert "Revert "openvpn plugin: Fix "Dead assignment" warning."" X-Git-Tag: collectd-5.5.2~66 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=65e795a1d9ac14405862913b91d0f00688fa5e32;hp=c21ce3b44f63d706b8b200a88047db74f1a51392;p=collectd.git Revert "Revert "openvpn plugin: Fix "Dead assignment" warning."" This reverts commit b40a0ef00b49cbc4d828ca2cd928c98dd27834c0. --- diff --git a/src/openvpn.c b/src/openvpn.c index a36de9d0..93c8f1b5 100644 --- a/src/openvpn.c +++ b/src/openvpn.c @@ -525,6 +525,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) {