From d583883c1348ac62451e7f0a1a028bda90eb8a0a Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Thu, 1 Jun 2017 14:53:46 +0100 Subject: [PATCH] rename a param that shadow's a global symbol --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 8325fa12b..7eaca751f 100644 --- a/main.c +++ b/main.c @@ -175,7 +175,7 @@ static void start_curses(void) #define MUTT_NEWS (1 << 5) /* -g and -G */ #endif -int main(int argc, char **argv, char **environ) +int main(int argc, char **argv, char **env) { char folder[_POSIX_PATH_MAX] = ""; char *subject = NULL; @@ -228,10 +228,10 @@ int main(int argc, char **argv, char **environ) { char **srcp, **dstp; int count = 0; - for (srcp = environ; srcp && *srcp; srcp++) + for (srcp = env; srcp && *srcp; srcp++) count++; envlist = safe_calloc(count + 1, sizeof(char *)); - for (srcp = environ, dstp = envlist; srcp && *srcp; srcp++, dstp++) + for (srcp = env, dstp = envlist; srcp && *srcp; srcp++, dstp++) *dstp = safe_strdup(*srcp); } -- 2.40.0