setproctitle.c: declar tmp as static so valgrind will not detect a leak.
This commit is contained in:
parent
a63b1196e0
commit
ac7f6bac6f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user