git: ac413189f535 - main - vfslist.c: initialize skipvfs variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Jan 2022 22:06:25 UTC
The branch main has been updated by se:
URL: https://cgit.FreeBSD.org/src/commit/?id=ac413189f53524e489c900b3cfaa80a1552875ca
commit ac413189f53524e489c900b3cfaa80a1552875ca
Author: Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2022-01-05 22:00:36 +0000
Commit: Stefan Eßer <se@FreeBSD.org>
CommitDate: 2022-01-05 22:00:36 +0000
vfslist.c: initialize skipvfs variable
The function makevfslist is only called once in mount.c, but should
be save to be called more than once with different parameters.
The bin/df command links against this file, and will need this
possibility to allow -l and -t to be used together.
MFC after: 3 days
---
sbin/mount/vfslist.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sbin/mount/vfslist.c b/sbin/mount/vfslist.c
index d6a42e61d8b4..e45aaec5fc09 100644
--- a/sbin/mount/vfslist.c
+++ b/sbin/mount/vfslist.c
@@ -68,6 +68,7 @@ makevfslist(char *fslist)
if (fslist == NULL)
return (NULL);
+ skipvfs = 0;
if (fslist[0] == 'n' && fslist[1] == 'o') {
fslist += 2;
skipvfs = 1;