vtfontcvt: zero memory allocated by xmalloc
PR: 205707 Submitted by: Dmitry Wagin
This commit is contained in:
parent
37dbd136c3
commit
7e65018aa6
@ -102,7 +102,7 @@ xmalloc(size_t size)
|
||||
{
|
||||
void *m;
|
||||
|
||||
if ((m = malloc(size)) == NULL)
|
||||
if ((m = calloc(1, size)) == NULL)
|
||||
errx(1, "memory allocation failure");
|
||||
return (m);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user