summaryrefslogtreecommitdiff
path: root/sbin/umount
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/umount')
-rw-r--r--sbin/umount/umount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c
index f832848d18a4..9c34d8bba03f 100644
--- a/sbin/umount/umount.c
+++ b/sbin/umount/umount.c
@@ -80,7 +80,7 @@ main(argc, argv)
int argc;
char *argv[];
{
- int all, ch, errs, mnts;
+ int all, ch, errs = 0, mnts;
char **typelist = NULL;
struct statfs *mntbuf;
@@ -211,7 +211,8 @@ umountfs(name, typelist)
struct timeval pertry, try;
CLIENT *clp;
int so;
- char *type, *delimp, *hostp, *mntpt, *origname, rname[MAXPATHLEN];
+ char *type, *delimp = NULL, *hostp, *mntpt, *origname;
+ char rname[MAXPATHLEN];
if (realpath(name, rname) == NULL) {
/* Continue and let the system call check it... */