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
6b9c6618
Commit
6b9c6618
authored
Feb 15, 2013
by
antirez
Browse files
Cluster: make valgrind happy initializing all the bytes of the node IP.
parent
7371d5e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
6b9c6618
...
@@ -333,7 +333,7 @@ clusterNode *createClusterNode(char *nodename, int flags) {
...
@@ -333,7 +333,7 @@ clusterNode *createClusterNode(char *nodename, int flags) {
node
->
configdigest
=
NULL
;
node
->
configdigest
=
NULL
;
node
->
configdigest_ts
=
0
;
node
->
configdigest_ts
=
0
;
node
->
link
=
NULL
;
node
->
link
=
NULL
;
node
->
ip
[
0
]
=
'\0'
;
memset
(
node
->
ip
,
0
,
sizeof
(
node
->
ip
))
;
node
->
port
=
0
;
node
->
port
=
0
;
return
node
;
return
node
;
}
}
...
...
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