From 2c835efc1bf9498b01d551f3a5912c882e98fd58 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 5 Jul 2007 18:01:55 +0200 Subject: svn_rev_457 --- common/misc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/misc.c') diff --git a/common/misc.c b/common/misc.c index d2b3455f54..30631182d3 100644 --- a/common/misc.c +++ b/common/misc.c @@ -14,6 +14,9 @@ void mem_malloc_init (void *start, void *end) mem_malloc_start = (ulong)start; mem_malloc_end = (ulong)end; mem_malloc_brk = mem_malloc_start; + + memset ((void *) mem_malloc_start, 0, + mem_malloc_end - mem_malloc_start); } void *sbrk (ptrdiff_t increment) -- cgit v1.2.3