diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-01 18:02:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-01 18:02:03 +0000 |
commit | 9c6367889ba471421d7714df59533a6f3314b266 (patch) | |
tree | 0bdb76704ffc42aee3026965e16678c742f4ce95 /usr.sbin | |
parent | 1fb9c45a0509272e9e281f5c4b6b4ff0289b9b3c (diff) |
zap emalloc mem
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/config/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/config/util.c b/usr.sbin/config/util.c index c9db10cda80..c3b50187735 100644 --- a/usr.sbin/config/util.c +++ b/usr.sbin/config/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.3 1996/04/21 23:40:28 deraadt Exp $ */ +/* $OpenBSD: util.c,v 1.4 1996/09/01 18:02:02 deraadt Exp $ */ /* $NetBSD: util.c,v 1.4 1996/03/17 11:50:16 cgd Exp $ */ /* @@ -71,6 +71,7 @@ emalloc(size) if ((p = malloc(size)) == NULL) nomem(); + memset(p, 0, size); return (p); } |