diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-01 18:34:59 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-01 18:34:59 +0530 |
commit | f3c4dae1dd1568fa1aa529ad7e16e73dca03b309 (patch) | |
tree | 42f6af4797ecd39d5478f1a067bbf6e0aacb3c73 /src | |
parent | 1224270104e2a2058998e1e2b71b32161e1d41d5 (diff) | |
download | nnn-f3c4dae1dd1568fa1aa529ad7e16e73dca03b309.tar.gz |
Fix build break
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 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; |