1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

25057: better debug error on memory failure

This commit is contained in:
Peter Stephenson 2008-05-17 17:55:37 +00:00
parent 63b0ca8f37
commit 8ab895baf0
3 changed files with 11 additions and 1 deletions

View file

@ -958,7 +958,7 @@ malloc(MALLOC_ARG_T size)
n = (size + M_HSIZE + M_ALLOC + m_pgsz - 1) & ~(m_pgsz - 1);
if (((char *)(m = (struct m_hdr *)sbrk(n))) == ((char *)-1)) {
DPUTS(1, "MEM: allocation error at sbrk.");
DPUTS1(1, "MEM: allocation error at sbrk, size %L.", n);
unqueue_signals();
return NULL;
}