mirror of git://git.sv.gnu.org/nano.git
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:
parent
61c6d43231
commit
13caef2de0
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue