Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f69b0a0d
Commit
f69b0a0d
authored
Feb 26, 2013
by
antirez
Browse files
setproctitle.c: declar tmp as static so valgrind will not detect a leak.
parent
ac3100bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/setproctitle.c
View file @
f69b0a0d
...
@@ -80,7 +80,7 @@ static int spt_clearenv(void) {
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment