From 10b7067eb722bf2bc19f4dd6d97199be705baea2 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Tue, 21 May 2019 10:44:16 +0200 Subject: examples: reduce variable scopes Closes https://github.com/curl/curl/pull/3919 --- docs/examples/multi-app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/multi-app.c') diff --git a/docs/examples/multi-app.c b/docs/examples/multi-app.c index 78867d835..b98a25161 100644 --- a/docs/examples/multi-app.c +++ b/docs/examples/multi-app.c @@ -147,11 +147,11 @@ int main(void) /* See how the transfers went */ while((msg = curl_multi_info_read(multi_handle, &msgs_left))) { if(msg->msg == CURLMSG_DONE) { - int idx, found = 0; + int idx; /* Find out which handle this message is about */ for(idx = 0; idxeasy_handle == handles[idx]); + int found = (msg->easy_handle == handles[idx]); if(found) break; } -- cgit v1.2.3