Commit bc84c399 authored by charsyam's avatar charsyam Committed by antirez
Browse files

adding check error code

adding check error code
parent 3b397441
...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment