summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2016-04-09 12:23:59 +0000
committerotto <otto@openbsd.org>2016-04-09 12:23:59 +0000
commitde4f243587f034ffa4a134092f8ac6f160b68b31 (patch)
treea9beb6fe05f416d3d1f80275e3efc9347b70ef74 /lib/libc/stdlib/malloc.c
parentUse _if for a single interface name and _ifs for a list of interface (diff)
downloadwireguard-openbsd-de4f243587f034ffa4a134092f8ac6f160b68b31.tar.xz
wireguard-openbsd-de4f243587f034ffa4a134092f8ac6f160b68b31.zip
redundant memset(3), from Michael McConville, ok armani@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r--lib/libc/stdlib/malloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index 89c8bbb9007..536cd435d91 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.c,v 1.185 2016/03/17 17:55:33 mmcc Exp $ */
+/* $OpenBSD: malloc.c,v 1.186 2016/04/09 12:23:59 otto Exp $ */
/*
* Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@@ -703,7 +703,6 @@ omalloc_grow(struct dir_info *d)
return 1;
STATS_ADD(d->malloc_used, newsize);
- memset(p, 0, newsize);
STATS_ZERO(d->inserts);
STATS_ZERO(d->insert_collisions);
for (i = 0; i < d->regions_total; i++) {