summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/examples/multi-uv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/multi-uv.c b/docs/examples/multi-uv.c
index 51526c894..51ef9f6d6 100644
--- a/docs/examples/multi-uv.c
+++ b/docs/examples/multi-uv.c
@@ -146,7 +146,7 @@ void curl_perform(uv_poll_t *req, int status, int events)
if(events & UV_WRITABLE)
flags |= CURL_CSELECT_OUT;
- context = (curl_context_t *) req;
+ context = (curl_context_t *) req->data;
curl_multi_socket_action(curl_handle, context->sockfd, flags,
&running_handles);