From 57507e15819afcb59172dac3654c8cd027637786 Mon Sep 17 00:00:00 2001 From: maja Date: Fri, 6 Sep 1996 15:35:09 +0000 Subject: [PATCH] Fixed another bug niklas found. -moj --- sys/kern/subr_userconf.c | 6 ++++-- 1 file 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 @@ -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; -- 2.20.1