mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
examples/multi-single: fix scan-build warning
warning: Value stored to 'mc' during its initialization is never read
Follow-up to ae8e11ed5f
Closes #7360
This commit is contained in:
parent
1e488d38c9
commit
1026b36ea0
@ -68,11 +68,12 @@ int main(void)
|
|||||||
do {
|
do {
|
||||||
CURLMcode mc = curl_multi_perform(multi_handle, &still_running);
|
CURLMcode mc = curl_multi_perform(multi_handle, &still_running);
|
||||||
|
|
||||||
|
if(!mc)
|
||||||
/* wait for activity, timeout or "nothing" */
|
/* wait for activity, timeout or "nothing" */
|
||||||
mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL);
|
mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL);
|
||||||
|
|
||||||
if(mc != CURLM_OK) {
|
if(mc) {
|
||||||
fprintf(stderr, "curl_multi_wait() failed, code %d.\n", mc);
|
fprintf(stderr, "curl_multi_poll() failed, code %d.\n", (int)mc);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user