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 ac3100bc3b
commit f69b0a0db8

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;