mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -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;
|
return 0;
|
||||||
#else
|
#else
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
char **tmp;
|
static char **tmp;
|
||||||
|
|
||||||
if (!(tmp = malloc(sizeof *tmp)))
|
if (!(tmp = malloc(sizeof *tmp)))
|
||||||
return errno;
|
return errno;
|
||||||
|
Loading…
Reference in New Issue
Block a user