diff options
author | 1996-09-01 18:02:02 +0000 | |
---|---|---|
committer | 1996-09-01 18:02:02 +0000 | |
commit | 72600f422d8adb0582a8fe732f791a7735a90bf9 (patch) | |
tree | 4a22f4a656e70f7ebbdd3a3601d9b9b44c635278 | |
parent | change keymap_t to pccons_keymap_t in pccons (diff) | |
download | wireguard-openbsd-72600f422d8adb0582a8fe732f791a7735a90bf9.tar.xz wireguard-openbsd-72600f422d8adb0582a8fe732f791a7735a90bf9.zip |
zap emalloc mem
-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); } |