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
This commit is contained in:
William Hubbs 2015-10-13 08:27:43 -05:00
parent 29f7e33592
commit b81317bdf8

View File

@ -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, " ");