From 65e795a1d9ac14405862913b91d0f00688fa5e32 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Tue, 26 Jan 2016 12:19:57 +0100 Subject: [PATCH] Revert "Revert "openvpn plugin: Fix "Dead assignment" warning."" This reverts commit b40a0ef00b49cbc4d828ca2cd928c98dd27834c0. --- src/openvpn.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.11.0