Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
49539fd1
Commit
49539fd1
authored
Oct 15, 2020
by
Alex Smith
Committed by
michael-grunder
Feb 25, 2021
Browse files
redisReply: Fix - set len in double objects
parent
53a8144c
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiredis.c
View file @
49539fd1
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment