diff --git a/src/config.c b/src/config.c index 10faa3bea..a68fddf1d 100644 --- a/src/config.c +++ b/src/config.c @@ -1058,7 +1058,7 @@ struct rewriteConfigState *rewriteConfigReadOldFile(char *path) { char *p = strstr(argv[0],"slave"); if (p) { sds alt = sdsempty(); - alt = sdscatlen(alt,argv[0],p-argv[0]);; + alt = sdscatlen(alt,argv[0],p-argv[0]); alt = sdscatlen(alt,"replica",7); alt = sdscatlen(alt,p+5,strlen(p+5)); sdsfree(argv[0]); diff --git a/src/object.c b/src/object.c index 1bc400e85..6ba18d6a5 100644 --- a/src/object.c +++ b/src/object.c @@ -1298,7 +1298,7 @@ NULL addReply(c,shared.syntaxerr); return; } - if (samples == 0) samples = LLONG_MAX;; + if (samples == 0) samples = LLONG_MAX; j++; /* skip option argument. */ } else { addReply(c,shared.syntaxerr);