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
This commit is contained in:
Stefan Eßer 2022-01-05 23:00:36 +01:00
parent 7def1e10b3
commit ac413189f5

View file

@ -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;