projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1224270
)
Fix build break
author
Arun Prakash Jana <engineerarun@gmail.com>
Sun, 1 Mar 2020 13:04:59 +0000 (18:34 +0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Sun, 1 Mar 2020 13:04:59 +0000 (18:34 +0530)
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index 98069fb65b52ed5678e0659dbef89933bf9d52b0..b31418cf5e62d024b20de50412d8429c90f6bb98 100644
(file)
--- 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;