From a8b8c4e6f1416ee8fab2aab1667b73dd4e3d7820 Mon Sep 17 00:00:00 2001 From: Bogdan Marinescu Date: Sun, 6 Feb 2011 00:58:50 +0000 Subject: [PATCH] fix for issue #172 --- src/salloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/salloc.c b/src/salloc.c index 9d5bbdc8..7ba78f34 100644 --- a/src/salloc.c +++ b/src/salloc.c @@ -195,7 +195,7 @@ static void s_init() while( ( pstart = platform_get_first_free_ram( i ) ) != NULL ) { - memset( pstart, 0, memspace = ( u32 )platform_get_last_free_ram( i ) - ( u32 )pstart ); + memspace = ( u32 )platform_get_last_free_ram( i ) - ( u32 )pstart; g1 = ( char* )pstart; crt = g1 + DYN_SIZE_MULT; g2 = g1 + memspace - DYN_SIZE_MULT;