1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00

vidcontrol: use calloc where appropriate

Reported by:	kib
This commit is contained in:
Ed Maste 2016-11-05 11:19:55 +00:00
parent a304ad90e9
commit becf2d11e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308338

View File

@ -393,8 +393,8 @@ load_vt4mappingtable(unsigned int nmappings, FILE *f)
if (nmappings == 0)
return (NULL);
if ((t = malloc(sizeof *t * nmappings)) == NULL) {
warn("malloc");
if ((t = calloc(nmappings, sizeof(*t))) == NULL) {
warn("calloc");
return (NULL);
}