Merge branch 'gitee-master' into gitlab-upstream

This commit is contained in:
zhengshuxin 2023-12-18 13:44:03 +08:00
commit 44f0892c7b

View File

@ -246,7 +246,7 @@ redis_result* redis_client::get_string(socket_stream& conn, dbuf_pool* dbuf)
redis_result* rr = new(dbuf) redis_result(dbuf);
rr->set_type(REDIS_RESULT_STRING);
int len = atoi(sbuf.c_str());
if (len <= 0) {
if (len < 0) {
return rr;
}