summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 654d693..973c836 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 654d693..973c836 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;
OpenPOWER on IntegriCloud