commit:     b81317bdf8e3eed8b8ff2bef757ba29f362ed297
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Tue Oct 13 13:27:43 2015 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Oct 13 13:27:43 2015 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=b81317bd

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

 src/rc/mountinfo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c
index 53f2890..3f1dfb6 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, " ");

Reply via email to