summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2013-09-28 10:05:37 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2013-09-28 10:05:37 +0000
commit751dab89caeaaff84ede398200206a42a5b8056f (patch)
tree4c650b7fa4300432d087c094f8938c1758ae3de6
parent8e4e5bd063daa298f86c61c639b3fe3fa7ee3807 (diff)
Use of uninitialized variable. Found by Maxime Villard
ok guenther@
-rw-r--r--sys/arch/armish/stand/boot/devopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/armish/stand/boot/devopen.c b/sys/arch/armish/stand/boot/devopen.c
index ff9649b7b05..8114a2934f6 100644
--- a/sys/arch/armish/stand/boot/devopen.c
+++ b/sys/arch/armish/stand/boot/devopen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: devopen.c,v 1.3 2008/06/26 05:42:10 ray Exp $ */
+/* $OpenBSD: devopen.c,v 1.4 2013/09/28 10:05:36 mlarkin Exp $ */
/* $NetBSD: devopen.c,v 1.1 2003/06/25 17:24:22 cdi Exp $ */
/*-
@@ -52,7 +52,7 @@ devparse(const char *fname, int *dev, int *unit, int *part, const char **file)
s = strchr(fname, ':');
if (s != NULL) {
int devlen;
- int i, u, p;
+ int i, u, p = 0;
struct devsw *dp;
char devname[MAXDEVNAME];