Fix build break

This commit is contained in:
Arun Prakash Jana 2020-03-01 18:34:59 +05:30
parent 1224270104
commit f3c4dae1dd
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -2918,7 +2918,7 @@ static bool parsekvpair(kv **arr, char **envcpy, const uchar id, ushort *items)
if (!maxitems)
return FALSE;
*arr = malloc(maxitems * sizeof(kv));
*arr = calloc(maxitems, sizeof(kv));
if (!arr) {
xerror();
return FALSE;