o Correct error message forgotten in the last commit (malloc() -> calloc())
o Fix style nits Submitted by: bde
This commit is contained in:
parent
4f5a4612d3
commit
405c561518
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87224
@ -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