From b7f9a3c02d885e0fbe8fb7aac5c9a51b5771a9d3 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 19 Jun 2015 16:26:12 +0200 Subject: [PATCH] openvpn plugin: Fix "Dead assignment" warning. --- src/openvpn.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.30.2