Skip to content

Commit 6b009bc

Browse files
fix
1 parent 75f7276 commit 6b009bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/brpc/redis_command.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ ParseError RedisCommandParser::Consume(butil::IOBuf& buf,
389389
}
390390
// '*' stands for array "*<size>\r\n<sub-reply1><sub-reply2>..."
391391
if (!_parsing_array && *pfc != '*') {
392-
if (!std::isalpha(static_cast<unsigned char>(ch))) {
392+
if (!std::isalpha(static_cast<unsigned char>(*pfc))) {
393393
return PARSE_ERROR_TRY_OTHERS;
394394
}
395395
const size_t buf_size = buf.size();

0 commit comments

Comments
 (0)