mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
vtfontcvt: zero memory allocated by xmalloc
PR: 205707 Submitted by: Dmitry Wagin
This commit is contained in:
parent
37dbd136c3
commit
7e65018aa6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348668
|
@ -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…
Reference in a new issue