mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix build break
This commit is contained in:
parent
1224270104
commit
f3c4dae1dd
|
@ -2918,7 +2918,7 @@ static bool parsekvpair(kv **arr, char **envcpy, const uchar id, ushort *items)
|
||||||
if (!maxitems)
|
if (!maxitems)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
*arr = malloc(maxitems * sizeof(kv));
|
*arr = calloc(maxitems, sizeof(kv));
|
||||||
if (!arr) {
|
if (!arr) {
|
||||||
xerror();
|
xerror();
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue