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
9dfd11c3
Commit
9dfd11c3
authored
Feb 14, 2013
by
antirez
Browse files
Cluster: Initialize ip and port in createClusterNode().
parent
a26690e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
9dfd11c3
...
@@ -332,6 +332,8 @@ clusterNode *createClusterNode(char *nodename, int flags) {
...
@@ -332,6 +332,8 @@ 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'
;
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