Date: Wed, 5 Jan 2022 22:06:25 GMT From: =?utf-8?Q?Stefan E=C3=9Fer?= <se@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: ac413189f535 - main - vfslist.c: initialize skipvfs variable Message-ID: <202201052206.205M6P3X072147@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201052206.205M6P3X072147>