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
07125b8d
Commit
07125b8d
authored
Apr 10, 2018
by
dejun.xdj
Browse files
Bugfix: xadd comand <field,value> arity check
missing parenthesis causes wrong arithmetic priority.
parent
8ac7af1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
07125b8d
...
...
@@ -1009,7 +1009,7 @@ void xaddCommand(client *c) {
int
field_pos
=
i
+
1
;
/* Check arity. */
if
((
c
->
argc
-
field_pos
)
<
2
||
(
c
->
argc
-
field_pos
%
2
)
==
1
)
{
if
((
c
->
argc
-
field_pos
)
<
2
||
(
(
c
->
argc
-
field_pos
)
%
2
)
==
1
)
{
addReplyError
(
c
,
"wrong number of arguments for XADD"
);
return
;
}
...
...
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