M2: malloc

This commit is contained in:
Jan Nieuwenhuizen 2019-10-26 09:13:35 +02:00
parent c4c92c64cb
commit 529156c393
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ char *__brk = 0;
void *
malloc (int size)
{
if (!__brk)
if (__brk == 0)
__brk = brk (0);
if (brk (__brk + size) == -1)
return 0;