summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Smith <aes7mv@virginia.edu>2020-10-15 17:40:07 -0400
committermichael-grunder <michael.grunder@gmail.com>2021-02-25 21:25:17 -0800
commit49539fd1a74bef7f0646565adad9deaead2b1664 (patch)
tree1534214f08c201023071f2a6ae1ba9c024c2fd6b
parent53a8144c816ba1f468d90d30e2eef71fcbd3ffd3 (diff)
downloadhiredict-49539fd1a74bef7f0646565adad9deaead2b1664.tar.xz
redisReply: Fix - set len in double objects
-rw-r--r--hiredis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hiredis.c b/hiredis.c
index 3035f79..5b7a1b8 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -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;