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
bc84c399
Commit
bc84c399
authored
Feb 21, 2013
by
charsyam
Committed by
antirez
Mar 04, 2013
Browse files
adding check error code
adding check error code
parent
3b397441
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
bc84c399
...
@@ -70,6 +70,8 @@ int clusterLoadConfig(char *filename) {
...
@@ -70,6 +70,8 @@ int clusterLoadConfig(char *filename) {
while
(
fgets
(
line
,
maxline
,
fp
)
!=
NULL
)
{
while
(
fgets
(
line
,
maxline
,
fp
)
!=
NULL
)
{
int
argc
;
int
argc
;
sds
*
argv
=
sdssplitargs
(
line
,
&
argc
);
sds
*
argv
=
sdssplitargs
(
line
,
&
argc
);
if
(
argv
==
NULL
)
goto
fmterr
;
clusterNode
*
n
,
*
master
;
clusterNode
*
n
,
*
master
;
char
*
p
,
*
s
;
char
*
p
,
*
s
;
...
...
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