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

* lib/stdlib/realloc.c (realloc): Prepare for M2-Planet.
This commit is contained in:
Jan Nieuwenhuizen 2019-11-02 18:56:16 +01:00
parent 0115c9acbe
commit bad6ebeeaf
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
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);