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
2f454e5a
Unverified
Commit
2f454e5a
authored
Aug 02, 2020
by
hujie
Committed by
GitHub
Aug 02, 2020
Browse files
remove duplicate semicolon (#7438)
parent
f2da3efc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
2f454e5a
...
@@ -1058,7 +1058,7 @@ struct rewriteConfigState *rewriteConfigReadOldFile(char *path) {
...
@@ -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
]);
...
...
src/object.c
View file @
2f454e5a
...
@@ -1298,7 +1298,7 @@ NULL
...
@@ -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
);
...
...
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