Skip to content

Commit

Permalink
vfslist.c: initialize skipvfs variable
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stesser committed Jan 5, 2022
1 parent 7def1e1 commit ac41318
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sbin/mount/vfslist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac41318

Please sign in to comment.