From 9c6367889ba471421d7714df59533a6f3314b266 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 1 Sep 1996 18:02:03 +0000 Subject: zap emalloc mem --- usr.sbin/config/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin') 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); } -- cgit v1.2.3