(read_filesystem_list) [MOUNTED_GETMNT]: Don't infloop on getmnt(2) returning 0.

Christian von Roques
This commit is contained in:
Jim Meyering 1998-08-15 03:01:13 +00:00
parent 888da5c359
commit 9d7c2d4f7d

View File

@ -393,8 +393,8 @@ read_filesystem_list (int need_fs_type)
struct fs_data fsd;
while (errno = 0,
0 <= (val = getmnt (&offset, &fsd, sizeof (fsd), NOSTAT_MANY,
(char *) 0)))
0 < (val = getmnt (&offset, &fsd, sizeof (fsd), NOSTAT_MANY,
(char *) 0)))
{
me = (struct mount_entry *) xmalloc (sizeof (struct mount_entry));
me->me_devname = xstrdup (fsd.fd_req.devname);