From 9a124ae93567429b95378456864adf54fe71d490 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 12 Jun 2021 19:40:43 +0530 Subject: [PATCH] Initialize local array to NULL --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index ecb5888b..f640fbc0 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4039,7 +4039,7 @@ static char *get_output(char *buf, const size_t bytes, char *file, char *arg1, c FILE *pf; int index = 0, flags; char *ret = NULL; - char *argv[EXEC_ARGS_MAX]; + char *argv[EXEC_ARGS_MAX] = {0}; char *cmd = NULL; if (page) {