summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_conf.c6
-rw-r--r--sys/kern/vfs_mount.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c
index 654d6936ee52..973c8365ca3e 100644
--- a/sys/kern/vfs_conf.c
+++ b/sys/kern/vfs_conf.c
@@ -167,8 +167,10 @@ vfs_mountroot_try(char *mountfrom)
int error;
char patt[32];
- vfsname = path = mp = NULL;
- error = EINVAL;
+ vfsname = NULL;
+ path = NULL;
+ mp = NULL;
+ error = EINVAL;
if (mountfrom == NULL)
goto done;
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 654d6936ee52..973c8365ca3e 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -167,8 +167,10 @@ vfs_mountroot_try(char *mountfrom)
int error;
char patt[32];
- vfsname = path = mp = NULL;
- error = EINVAL;
+ vfsname = NULL;
+ path = NULL;
+ mp = NULL;
+ error = EINVAL;
if (mountfrom == NULL)
goto done;