From 70872ee2a17a612fdf242e7e46986b02122a4cdd Mon Sep 17 00:00:00 2001 From: jani Date: Wed, 19 Nov 2003 09:34:53 +0000 Subject: [PATCH] Do not initialize memp with zeros, the users initialize the fields themselves --- src/core/memp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/memp.c b/src/core/memp.c index 7ecff5f8..a68e7ca9 100644 --- a/src/core/memp.c +++ b/src/core/memp.c @@ -220,8 +220,6 @@ memp_malloc(memp_t type) ((u32_t)MEM_ALIGN((u8_t *)memp + sizeof(struct memp)) % MEM_ALIGNMENT) == 0); mem = MEM_ALIGN((u8_t *)memp + sizeof(struct memp)); - /* initialize memp memory with zeroes */ - memset(mem, 0, memp_sizes[type]); return mem; } else { LWIP_DEBUGF(MEMP_DEBUG | 2, ("memp_malloc: out of memory in pool %d\n", type));