summaryrefslogtreecommitdiff
path: root/sbin/umount
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>1999-10-08 19:56:45 +0000
committerNick Hibma <n_hibma@FreeBSD.org>1999-10-08 19:56:45 +0000
commitae0c2c78369cd591a1d302611a2f8287c7de98bd (patch)
treec7620631c89a7b26ac6cd40e7da8379de55cb55e /sbin/umount
parentaf2ea5aae6464f8f56707ef6cc255352e1a061b4 (diff)
downloadsrc-test2-ae0c2c78369cd591a1d302611a2f8287c7de98bd.tar.gz
src-test2-ae0c2c78369cd591a1d302611a2f8287c7de98bd.zip
Notes
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... */