fix failure of malloc to set errno on heap (brk) exhaustion
authorRich Felker <dalias@aerifal.cx>
Sat, 5 Oct 2013 15:59:21 +0000 (11:59 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 5 Oct 2013 15:59:21 +0000 (11:59 -0400)
commita947d317a2769d90bdb19aa11942b7a0680051d5
treed596eff6c40fd3ef448d5bee745ac0039d693033
parent543787039098c121917cb5f3e129d84b61afa61b
fix failure of malloc to set errno on heap (brk) exhaustion

I wrongly assumed the brk syscall would set errno, but on failure it
returns the old value of the brk rather than an error code.
src/malloc/malloc.c