Commit 36f73fdb authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Fix copying timeval for timeout

parent 2fc0d875
...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment