aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-01 18:34:59 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-01 18:34:59 +0530
commitf3c4dae1dd1568fa1aa529ad7e16e73dca03b309 (patch)
tree42f6af4797ecd39d5478f1a067bbf6e0aacb3c73 /src
parent1224270104e2a2058998e1e2b71b32161e1d41d5 (diff)
downloadnnn-f3c4dae1dd1568fa1aa529ad7e16e73dca03b309.tar.gz
Fix build break
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 98069fb..b31418c 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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;