redisReply: Fix - set len in double objects

This commit is contained in:
Alex Smith 2020-10-15 17:40:07 -04:00 committed by michael-grunder
parent 53a8144c81
commit 49539fd1a7

View File

@ -235,6 +235,7 @@ static void *createDoubleObject(const redisReadTask *task, double value, char *s
* decimal string conversion artifacts. */
memcpy(r->str, str, len);
r->str[len] = '\0';
r->len = len;
if (task->parent) {
parent = task->parent->obj;