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
e453d36e
Commit
e453d36e
authored
Apr 06, 2016
by
Dvir Volk
Committed by
antirez
May 10, 2016
Browse files
fixed case in moduleCreateCallReplyFromProto
parent
ae5cb3f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
e453d36e
...
...
@@ -807,10 +807,10 @@ RedisModuleCallReply *moduleCreateCallReplyFromProto(RedisModuleCtx *ctx, sds pr
reply
->
flags
=
REDISMODULE_REPLYFLAG_TOPARSE
;
/* Lazy parsing. */
switch
(
proto
[
0
])
{
case
'$'
:
case
'+'
:
reply
->
type
=
REDISMODULE_REPLY_STRING
;
case
'-'
:
reply
->
type
=
REDISMODULE_REPLY_ERROR
;
case
':'
:
reply
->
type
=
REDISMODULE_REPLY_INTEGER
;
case
'*'
:
reply
->
type
=
REDISMODULE_REPLY_ARRAY
;
case
'+'
:
reply
->
type
=
REDISMODULE_REPLY_STRING
;
break
;
case
'-'
:
reply
->
type
=
REDISMODULE_REPLY_ERROR
;
break
;
case
':'
:
reply
->
type
=
REDISMODULE_REPLY_INTEGER
;
break
;
case
'*'
:
reply
->
type
=
REDISMODULE_REPLY_ARRAY
;
break
;
default:
reply
->
type
=
REDISMODULE_REPLY_UNKNOWN
;
}
if
((
proto
[
0
]
==
'*'
||
proto
[
0
]
==
'$'
)
&&
proto
[
1
]
==
'-'
)
...
...
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