mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
fixed case in moduleCreateCallReplyFromProto
This commit is contained in:
parent
ae5cb3f7d5
commit
e453d36e1e
@ -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] == '-')
|
||||
|
Loading…
Reference in New Issue
Block a user