mirror of
https://github.com/jarun/nnn.git
synced 2025-04-19 03:45:01 +00:00
Fix build break
This commit is contained in:
parent
1224270104
commit
f3c4dae1dd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue