aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-10-13 08:27:43 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-10-13 08:27:43 -0500
commitb81317bdf8e3eed8b8ff2bef757ba29f362ed297 (patch)
tree6ef0c2a84bc3d195b7f6fe2094b40956a360eff4
parent29f7e335927d4c1fb151124de8cdf01fb87723fa (diff)
mountinfo: make sure the netdev variable is initialized on Linux
This fixes the following regression: X-Gentoo-Bug: 562668 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562668
-rw-r--r--src/rc/mountinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c
index 53f2890b..3f1dfb60 100644
--- a/src/rc/mountinfo.c
+++ b/src/rc/mountinfo.c
@@ -305,6 +305,7 @@ find_mounts(struct args *args)
buffer = xmalloc(sizeof(char) * PATH_MAX * 3);
while (fgets(buffer, PATH_MAX * 3, fp)) {
+ netdev = -1;
p = buffer;
from = strsep(&p, " ");
to = strsep(&p, " ");