diff --git a/src/utils.c b/src/utils.c index e5ec6337..f7fb95a1 100644 --- a/src/utils.c +++ b/src/utils.c @@ -288,9 +288,6 @@ void *nmalloc(size_t howmuch) { void *r = malloc(howmuch); - if (howmuch == 0) - die("Allocating zero bytes. Please report a bug.\n"); - if (r == NULL) die(_("Nano is out of memory!\n")); @@ -303,9 +300,6 @@ void *nrealloc(void *ptr, size_t howmuch) { void *r = realloc(ptr, howmuch); - if (howmuch == 0) - die("Allocating zero bytes. Please report a bug.\n"); - if (r == NULL) die(_("Nano is out of memory!\n"));