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
36f73fdb
Commit
36f73fdb
authored
Feb 04, 2011
by
Pieter Noordhuis
Browse files
Fix copying timeval for timeout
parent
2fc0d875
Changes
1
Hide whitespace changes
Inline
Side-by-side
net.c
View file @
36f73fdb
...
@@ -115,7 +115,7 @@ static int redisContextWaitReady(redisContext *c, int fd, const struct timeval *
...
@@ -115,7 +115,7 @@ static int redisContextWaitReady(redisContext *c, int fd, const struct timeval *
/* Only use timeout when not NULL. */
/* Only use timeout when not NULL. */
if
(
timeout
!=
NULL
)
{
if
(
timeout
!=
NULL
)
{
memcpy
(
&
to
,
timeout
,
sizeof
(
timeout
))
;
to
=
*
timeout
;
toptr
=
&
to
;
toptr
=
&
to
;
}
}
...
...
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