Skip to content

Commit

Permalink
mountinfo: make sure the netdev variable is initialized on Linux
Browse files Browse the repository at this point in the history
This fixes the following regression:

X-Gentoo-Bug: 562668
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562668
  • Loading branch information
williamh committed Oct 13, 2015
1 parent 3b1e96a commit feba5d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rc/mountinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, " ");
Expand Down

0 comments on commit feba5d8

Please sign in to comment.