提交 deb1f4d8 编写于 作者: A antirez

setproctitle.c: declar tmp as static so valgrind will not detect a leak.

上级 d0992d6e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册