tweaks: remove two redundant checks

The checks have been there for fifteen months, and no one ever reported
seeing those messages.
This commit is contained in:
Benno Schulenberg 2022-02-01 11:49:10 +01:00
parent 61c6d43231
commit 13caef2de0
1 changed files with 0 additions and 6 deletions

View File

@ -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"));