mirror of
https://github.com/fluencelabs/redis
synced 2025-05-28 09:41:19 +00:00
setproctitle.c: declar tmp as static so valgrind will not detect a leak.
This commit is contained in:
parent
ac3100bc3b
commit
f69b0a0db8
@ -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