From 138cc5de43effc2830aad8ea86baa81463e4fed1 Mon Sep 17 00:00:00 2001 From: stegerg Date: Thu, 26 Mar 2009 16:58:11 +0000 Subject: [PATCH] Allocate memory for resources with MEMF_CLEAR (x86 native bootloader.resource for example can cause trouble if it is not cleared) git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@31029 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- tools/genmodule/writestart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/genmodule/writestart.c b/tools/genmodule/writestart.c index 44cf58869..e757007ec 100644 --- a/tools/genmodule/writestart.c +++ b/tools/genmodule/writestart.c @@ -602,7 +602,7 @@ static void writeinitlib(FILE *out, struct config *cfg) " vecsize = %u*LIB_VECTSIZE;\n" " if (vecsize > 0)\n" " vecsize = ((vecsize-1)/sizeof(IPTR) + 1)*sizeof(IPTR);\n" - " mem = AllocMem(vecsize+sizeof(LIBBASETYPE), MEMF_PUBLIC);\n" + " mem = AllocMem(vecsize+sizeof(LIBBASETYPE), MEMF_PUBLIC|MEMF_CLEAR);\n" " if (mem == NULL)\n" " return NULL;\n" " lh = (LIBBASETYPEPTR)(mem + vecsize);\n" -- 2.11.4.GIT