summaryrefslogtreecommitdiff
path: root/docs/examples/multi-app.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-05-21 10:44:16 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-05-22 10:06:21 +0200
commit10b7067eb722bf2bc19f4dd6d97199be705baea2 (patch)
treed6a5e6ff76b923997ab6f859ac3d1015e9c30f81 /docs/examples/multi-app.c
parent918987a844912b431f132b5c4d49fb73a0cb1a0e (diff)
downloadcurl-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.c4
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;
}