fixed case in moduleCreateCallReplyFromProto

This commit is contained in:
Dvir Volk 2016-04-06 12:58:21 +03:00 committed by antirez
parent ae5cb3f7d5
commit e453d36e1e

View File

@ -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] == '-')