mescc: Mes C Library: Prepare for M2-Planet: realloc.

* lib/stdlib/realloc.c (realloc): Prepare for M2-Planet.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-07-25 19:56:16 +02:00 committed by Jan Nieuwenhuizen
parent f497c727ba
commit 9aace8ad4a
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ void *
realloc (void *ptr, size_t size)
{
void *new = malloc (size);
if (ptr && new)
if (ptr != 0 && new != 0)
{
memcpy (new, ptr, size);
free (ptr);