From: Arun Prakash Jana Date: Sat, 12 Jun 2021 14:10:43 +0000 (+0530) Subject: Initialize local array to NULL X-Git-Tag: v4.2~98 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9a124ae93567429b95378456864adf54fe71d490;p=nnn.git Initialize local array to NULL --- 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) {