From b81317bdf8e3eed8b8ff2bef757ba29f362ed297 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 13 Oct 2015 08:27:43 -0500 Subject: 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 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, " "); -- cgit v1.2.3