From 1e833c7ed96c1a7ba5bb5f4671a83fdcb4330a2b Mon Sep 17 00:00:00 2001 From: Ze Gan Date: Wed, 2 Aug 2023 08:27:19 +0800 Subject: [PATCH] Fix comments Signed-off-by: Ze Gan --- common/rediscommand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/rediscommand.cpp b/common/rediscommand.cpp index 9ffdd17e3..5cc7422b9 100644 --- a/common/rediscommand.cpp +++ b/common/rediscommand.cpp @@ -24,8 +24,8 @@ void RedisCommand::format(const char *fmt, ...) { redisFreeCommand(temp); temp = nullptr; - len = 0; } + len = 0; va_list ap; va_start(ap, fmt); @@ -45,8 +45,8 @@ void RedisCommand::formatArgv(int argc, const char **argv, const size_t *argvlen { redisFreeCommand(temp); temp = nullptr; - len = 0; } + len = 0; int ret = redisFormatCommandArgv(&temp, argc, argv, argvlen); if (ret == -1) {