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:
parent
29f7e33592
commit
b81317bdf8
@ -305,6 +305,7 @@ find_mounts(struct args *args)
|
|||||||
|
|
||||||
buffer = xmalloc(sizeof(char) * PATH_MAX * 3);
|
buffer = xmalloc(sizeof(char) * PATH_MAX * 3);
|
||||||
while (fgets(buffer, PATH_MAX * 3, fp)) {
|
while (fgets(buffer, PATH_MAX * 3, fp)) {
|
||||||
|
netdev = -1;
|
||||||
p = buffer;
|
p = buffer;
|
||||||
from = strsep(&p, " ");
|
from = strsep(&p, " ");
|
||||||
to = strsep(&p, " ");
|
to = strsep(&p, " ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user