diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-02-04 16:46:05 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-02-04 16:46:05 +0100 |
commit | 36f73fdb0c8756a53cb7129835d54ab240b911a4 (patch) | |
tree | 101f1567ff39477fff05f92c3324f62a2bd2e288 | |
parent | 2fc0d8756e547dcc10f5337d2e60d2b91da6e467 (diff) |
Fix copying timeval for timeout
-rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |