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
hiredis
Commits
5d94b82a
Commit
5d94b82a
authored
Jun 30, 2011
by
Pieter Noordhuis
Browse files
Decrease number of remaining protocol_t's to parse
parent
b9427f41
Changes
1
Show whitespace changes
Inline
Side-by-side
parser.c
View file @
5d94b82a
...
@@ -311,6 +311,7 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons
...
@@ -311,6 +311,7 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons
cur
=
&
stack
[
stackidx
];
cur
=
&
stack
[
stackidx
];
if
(
cur
->
type
==
REDIS_ARRAY_T
&&
cur
->
remaining
)
{
if
(
cur
->
type
==
REDIS_ARRAY_T
&&
cur
->
remaining
)
{
RESET_PROTOCOL_T
(
&
stack
[
++
stackidx
]);
RESET_PROTOCOL_T
(
&
stack
[
++
stackidx
]);
cur
->
remaining
--
;
break
;
break
;
}
}
stackidx
--
;
stackidx
--
;
...
...
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