diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 1996-09-06 15:35:10 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 1996-09-06 15:35:10 +0000 |
commit | c6c0b6d234427ec8f08ebb439df43a41fd8b8637 (patch) | |
tree | bae818d24e3e71ea50994e10b3c7ad2936bfcbbd /sys/kern | |
parent | 542069850990c98215d688b4741214a27c9506ed (diff) |
Fixed another bug niklas found. -moj
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_userconf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/subr_userconf.c b/sys/kern/subr_userconf.c index 144daa98ada..61faed30340 100644 --- a/sys/kern/subr_userconf.c +++ b/sys/kern/subr_userconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_userconf.c,v 1.9 1996/09/06 12:43:41 niklas Exp $ */ +/* $OpenBSD: subr_userconf.c,v 1.10 1996/09/06 15:35:09 maja Exp $ */ /* * Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se> @@ -814,9 +814,11 @@ userconf_add(dev,len,unit,state) short unit, state; { int i = 0, found = 0; - struct cfdata new = {0}; + struct cfdata new; int val, max_unit; + bzero(&new, sizeof(struct cfdata)); + if (userconf_maxdev == userconf_totdev) { printf("No more space for new devices.\n"); return; |