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

o Fix style nits

Submitted by:	bde
This commit is contained in:
Chris D. Faulhaber 2001-12-02 18:15:53 +00:00
parent 4f5a4612d3
commit 405c561518
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87224

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;
}