projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c21ce3b
)
Revert "Revert "openvpn plugin: Fix "Dead assignment" warning.""
author
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 26 Jan 2016 11:19:57 +0000
(12:19 +0100)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 26 Jan 2016 11:19:57 +0000
(12:19 +0100)
This reverts commit
b40a0ef00b49cbc4d828ca2cd928c98dd27834c0
.
src/openvpn.c
patch
|
blob
|
history
diff --git
a/src/openvpn.c
b/src/openvpn.c
index
a36de9d
..
93c8f1b
100644
(file)
--- 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)
{