summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}