mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-07 11:41:16 +02:00
zsh-workers/9505
This commit is contained in:
parent
94c0d7e5ec
commit
1ebeb52021
1 changed files with 4 additions and 0 deletions
|
@ -356,6 +356,10 @@ zhalloc(size_t size)
|
|||
n = (n + pgsz) & ~pgsz;
|
||||
h = (Heap) mmap(NULL, n, PROT_READ | PROT_WRITE,
|
||||
MMAP_FLAGS, -1, 0);
|
||||
if (h == ((Heap) -1)) {
|
||||
zerr("fatal error: out of heap memory", NULL, 0);
|
||||
exit(1);
|
||||
}
|
||||
h->size = n;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue