diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-01-09 14:36:12 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-01-09 14:36:12 +0000 |
commit | d5ea308f37a69ea661e81e663c2664d5a686ef34 (patch) | |
tree | 9e14df4bda99762a7217f9546cb8ae926e93668d /sys/dev | |
parent | 8c2a06e21c8eaf957b18384123be2644e60415f4 (diff) |
Clear buffers on allocation, suggested by csapuntz
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ccd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index 8e9d0674e13..06dadf44838 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.24 1998/01/07 00:48:10 niklas Exp $ */ +/* $OpenBSD: ccd.c,v 1.25 1998/01/09 14:36:11 niklas Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -222,6 +222,7 @@ getccdbuf() struct ccdbuf *cbp; cbp = malloc(sizeof (struct ccdbuf), M_DEVBUF, M_WAITOK); + bzero(cbp, sizeof (struct ccdbuf)); cbp->cb_sg = malloc(sizeof (struct ccdseg) * MAXBSIZE / CLBYTES, M_DEVBUF, M_WAITOK); return (cbp); |