freebsd-ports/lang/hope/files/patch-src-memory.c
Lev A. Serebryakov 8cdc89d043 Fix building on 5-CURRENT
PR:		ports/60018
Submitted by:	FreeBSD-gnats-submit@freebsd.org
2003-12-08 10:53:27 +00:00

11 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;