o Correct error message forgotten in the last commit (malloc() -> calloc())

o Fix style nits

Submitted by:	bde
This commit is contained in:
jedgar 2001-12-02 18:15:53 +00:00
parent 64e25c2991
commit 1a4b296a16

View File

@ -39,8 +39,7 @@ zmalloc(size_t size)
void *ptr;
ptr = calloc(1, size);
if (!ptr)
err(EX_OSERR, "malloc() failed");
if (ptr == NULL)
err(EX_OSERR, "calloc() failed");
return ptr;
}