Code

Revert "Revert "openvpn plugin: Fix "Dead assignment" warning.""
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 26 Jan 2016 11:19:57 +0000 (12:19 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 26 Jan 2016 11:19:57 +0000 (12:19 +0100)
src/openvpn.c

index a36de9d0160524b056e1df8cd45d155f5de2b80e..93c8f1b58363fbf8f7a27f4f03a5b4077f74fee8 100644 (file)
@@ -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)
                {