mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
setproctitle.c: declar tmp as static so valgrind will not detect a leak.
This commit is contained in:
parent
d0992d6e8b
commit
deb1f4d841
@ -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…
Reference in New Issue
Block a user