X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fopenvpn.c;h=93c8f1b58363fbf8f7a27f4f03a5b4077f74fee8;hb=4fe146e337b55e4cbda726649ec2eb6db7c89c72;hp=a36de9d0160524b056e1df8cd45d155f5de2b80e;hpb=c21ce3b44f63d706b8b200a88047db74f1a51392;p=collectd.git 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) {