1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/lang/hope/files/patch-src--memory.c
Lev A. Serebryakov 0178d30e00 STAGEfy
2014-05-18 20:07:43 +00:00

12 lines
355 B
C

--- src/memory.c.orig Sun Dec 7 18:01:46 2003
+++ src/memory.c Sun Dec 7 18:01:50 2003
@@ -22,6 +22,7 @@
{
if ((base_memory = (char *)malloc((size_t)MEMSIZE)) == NULL)
error(FATALERR, "can't allocate memory");
+ memset(base_memory, NULL, (size_t)MEMSIZE);
top_memory = base_memory + RoundDown(MEMSIZE);
lim_temp = top_string = base_memory;