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

This commit is contained in:
antirez 2013-02-26 15:51:15 +01:00
parent d0992d6e8b
commit deb1f4d841

View File

@ -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;