diff --git a/examples/libc/memory.c b/examples/libc/memory.c index 0a0bfecd8039d986638364224e56d556e896d917..81b566f6468b3c4585d8b1071ad33ce4b3a82bd7 100644 --- a/examples/libc/memory.c +++ b/examples/libc/memory.c @@ -43,7 +43,9 @@ int libc_mem(void) p = malloc(0); if (p == NULL) - merror("malloc (0) failed."); + { + printf("malloc(0) returns NULL\n"); + } p = realloc(p, 0); if (p != NULL)