mirror of https://mirror.osredm.com/root/redis.git
remove duplicate semicolon (#7438)
This commit is contained in:
parent
f2da3efc78
commit
2f454e5ae8
|
@ -1058,7 +1058,7 @@ struct rewriteConfigState *rewriteConfigReadOldFile(char *path) {
|
||||||
char *p = strstr(argv[0],"slave");
|
char *p = strstr(argv[0],"slave");
|
||||||
if (p) {
|
if (p) {
|
||||||
sds alt = sdsempty();
|
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,"replica",7);
|
||||||
alt = sdscatlen(alt,p+5,strlen(p+5));
|
alt = sdscatlen(alt,p+5,strlen(p+5));
|
||||||
sdsfree(argv[0]);
|
sdsfree(argv[0]);
|
||||||
|
|
|
@ -1298,7 +1298,7 @@ NULL
|
||||||
addReply(c,shared.syntaxerr);
|
addReply(c,shared.syntaxerr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (samples == 0) samples = LLONG_MAX;;
|
if (samples == 0) samples = LLONG_MAX;
|
||||||
j++; /* skip option argument. */
|
j++; /* skip option argument. */
|
||||||
} else {
|
} else {
|
||||||
addReply(c,shared.syntaxerr);
|
addReply(c,shared.syntaxerr);
|
||||||
|
|
Loading…
Reference in New Issue