mirror of https://github.com/Icinga/icinga2.git
RedisConnection::ReadRESP(): *-1\r\n is null, not [ ]
This commit is contained in:
parent
4522522444
commit
2c3d2f8b87
|
@ -555,12 +555,12 @@ Value RedisConnection::ReadRESP(AsyncReadStream& stream, boost::asio::yield_cont
|
||||||
throw BadRedisInt(std::move(buf));
|
throw BadRedisInt(std::move(buf));
|
||||||
}
|
}
|
||||||
|
|
||||||
Array::Ptr arr = new Array();
|
|
||||||
|
|
||||||
if (i < 0) {
|
if (i < 0) {
|
||||||
i = 0;
|
return Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Array::Ptr arr = new Array();
|
||||||
|
|
||||||
arr->Reserve(i);
|
arr->Reserve(i);
|
||||||
|
|
||||||
for (; i; --i) {
|
for (; i; --i) {
|
||||||
|
|
Loading…
Reference in New Issue