summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-02-04 16:46:05 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-02-04 16:46:05 +0100
commit36f73fdb0c8756a53cb7129835d54ab240b911a4 (patch)
tree101f1567ff39477fff05f92c3324f62a2bd2e288
parent2fc0d8756e547dcc10f5337d2e60d2b91da6e467 (diff)
Fix copying timeval for timeout
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index 44b338b..438a129 100644
--- a/net.c
+++ b/net.c
@@ -115,7 +115,7 @@ static int redisContextWaitReady(redisContext *c, int fd, const struct timeval *
/* Only use timeout when not NULL. */
if (timeout != NULL) {
- memcpy(&to,timeout,sizeof(timeout));
+ to = *timeout;
toptr = &to;
}