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) {
return 0;
#else
extern char **environ;
char **tmp;
static char **tmp;
if (!(tmp = malloc(sizeof *tmp)))
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