From: maja Date: Fri, 6 Sep 1996 15:35:09 +0000 (+0000) Subject: Fixed another bug niklas found. -moj X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=57507e15819afcb59172dac3654c8cd027637786;p=openbsd Fixed another bug niklas found. -moj --- 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;