Commit f69b0a0d authored by antirez's avatar antirez
Browse files

setproctitle.c: declar tmp as static so valgrind will not detect a leak.

parent ac3100bc
...@@ -80,7 +80,7 @@ static int spt_clearenv(void) { ...@@ -80,7 +80,7 @@ static int spt_clearenv(void) {
return 0; return 0;
#else #else
extern char **environ; extern char **environ;
char **tmp; static char **tmp;
if (!(tmp = malloc(sizeof *tmp))) if (!(tmp = malloc(sizeof *tmp)))
return errno; return errno;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment