summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-10-01 06:17:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-10-01 06:17:32 +0000
commit7d149b0c77524e52b1b06a7caa7d0c4f7b7f50a0 (patch)
tree9fe018434da5db4ce98bdb665b1fd1faba4bbfe3 /sbin
parent84f225ec5166658ee0e39d84e56a478cb4f96462 (diff)
free without test
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/mount.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 3dc2694469f..25558475caf 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount.c,v 1.33 2003/08/05 20:48:59 tedu Exp $ */
+/* $OpenBSD: mount.c,v 1.34 2003/10/01 06:17:31 deraadt Exp $ */
/* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mount.c 8.19 (Berkeley) 4/19/94";
#else
-static char rcsid[] = "$OpenBSD: mount.c,v 1.33 2003/08/05 20:48:59 tedu Exp $";
+static char rcsid[] = "$OpenBSD: mount.c,v 1.34 2003/10/01 06:17:31 deraadt Exp $";
#endif
#endif /* not lint */
@@ -672,8 +672,7 @@ catopt(char *s0, const char *s1)
} else
cp = strdup(s1);
- if (s0)
- free(s0);
+ free(s0);
return (cp);
}