opnsense-ports/lang/hope/files/patch-src--memory.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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;