diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-05-21 10:44:16 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-05-22 10:06:21 +0200 |
commit | 10b7067eb722bf2bc19f4dd6d97199be705baea2 (patch) | |
tree | d6a5e6ff76b923997ab6f859ac3d1015e9c30f81 /docs/examples/multi-app.c | |
parent | 918987a844912b431f132b5c4d49fb73a0cb1a0e (diff) | |
download | curl-10b7067eb722bf2bc19f4dd6d97199be705baea2.tar.gz |
examples: reduce variable scopes
Closes https://github.com/curl/curl/pull/3919
Diffstat (limited to 'docs/examples/multi-app.c')
-rw-r--r-- | docs/examples/multi-app.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; idx<HANDLECOUNT; idx++) { - found = (msg->easy_handle == handles[idx]); + int found = (msg->easy_handle == handles[idx]); if(found) break; } |