From 36f73fdb0c8756a53cb7129835d54ab240b911a4 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Fri, 4 Feb 2011 16:46:05 +0100 Subject: Fix copying timeval for timeout --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3