o Correct error message forgotten in the last commit (malloc() -> calloc())
o Fix style nits Submitted by: bde
This commit is contained in:
parent
64e25c2991
commit
1a4b296a16
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user