diff --git a/src/setproctitle.c b/src/setproctitle.c index 399205c06..99bccf2c0 100644 --- a/src/setproctitle.c +++ b/src/setproctitle.c @@ -80,7 +80,7 @@ static int spt_clearenv(void) { return 0; #else extern char **environ; - char **tmp; + static char **tmp; if (!(tmp = malloc(sizeof *tmp))) return errno;