summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-09-30 10:58:15 +0200
committerantirez <antirez@gmail.com>2019-09-30 10:58:15 +0200
commit23f5cb423341b014f6a7005e2cbe10c22e7098e3 (patch)
tree6c245d0a0d2a47a9191548be689c3d75fdabd709
parentad45d7e407798d2996b5782470a64bd39b429be0 (diff)
downloadredis-23f5cb423341b014f6a7005e2cbe10c22e7098e3.tar.gz
Change a bit the style of #6385.
-rw-r--r--src/module.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/module.c b/src/module.c
index 9c2bed08f..13353df2c 100644
--- a/src/module.c
+++ b/src/module.c
@@ -1149,10 +1149,8 @@ int RM_ReplyWithLongLong(RedisModuleCtx *ctx, long long ll) {
int replyWithStatus(RedisModuleCtx *ctx, const char *msg, char *prefix) {
client *c = moduleGetReplyClient(ctx);
if (c == NULL) return REDISMODULE_OK;
- const size_t msgLen = strlen(msg);
- const size_t prefixLen = strlen(prefix);
- addReplyProto(c,prefix,prefixLen);
- addReplyProto(c,msg,msgLen);
+ addReplyProto(c,prefix,strlen(prefix));
+ addReplyProto(c,msg,strlen(msg));
addReplyProto(c,"\r\n",2);
return REDISMODULE_OK;
}