mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Fix my last commit. Only call strunvis after properly checking the argument is
not NULL.
This commit is contained in:
parent
da0878836b
commit
1dcbb99523
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241441
@ -150,16 +150,18 @@ fstabscan(void)
|
||||
/* OLD_STYLE_FSTAB */
|
||||
while ((cp = strsep(&p, " \t\n")) != NULL && *cp == '\0')
|
||||
;
|
||||
if (strunvis(cp, cp) < 0)
|
||||
goto bad;
|
||||
_fs_fstab.fs_spec = cp;
|
||||
if (!_fs_fstab.fs_spec || *_fs_fstab.fs_spec == '#')
|
||||
if (_fs_fstab.fs_spec == NULL || *_fs_fstab.fs_spec == '#')
|
||||
continue;
|
||||
if (strunvis(_fs_fstab.fs_spec, _fs_fstab.fs_spec) < 0)
|
||||
goto bad;
|
||||
while ((cp = strsep(&p, " \t\n")) != NULL && *cp == '\0')
|
||||
;
|
||||
if (strunvis(cp, cp) < 0)
|
||||
goto bad;
|
||||
_fs_fstab.fs_file = cp;
|
||||
if (_fs_fstab.fs_file == NULL)
|
||||
goto bad;
|
||||
if (strunvis(_fs_fstab.fs_file, _fs_fstab.fs_file) < 0)
|
||||
goto bad;
|
||||
fixfsfile();
|
||||
while ((cp = strsep(&p, " \t\n")) != NULL && *cp == '\0')
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user