diff options
author | Yang Tse <yangsita@gmail.com> | 2010-05-31 16:51:36 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-05-31 16:51:36 +0200 |
commit | a324fa7b97657bbd52d7358dd800472f3beb10e1 (patch) | |
tree | 84d2b61ae09867a5324aa37e38d6cbd48a274a05 /tests/libtest/lib575.c | |
parent | a9483b1f4acf80859f252832ec69a21b683556a3 (diff) |
fix compiler warning: variable was set but never used
Diffstat (limited to 'tests/libtest/lib575.c')
-rw-r--r-- | tests/libtest/lib575.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libtest/lib575.c b/tests/libtest/lib575.c index 3bf15ea26..49a379e80 100644 --- a/tests/libtest/lib575.c +++ b/tests/libtest/lib575.c @@ -84,6 +84,10 @@ int test(char *URL) timeout.tv_usec = 0; m = curl_multi_fdset(mhandle, &fdread, &fdwrite, &fdexcep, &max_fdset); + if(m != CURLM_OK) { + fprintf(stderr, "curl_multi_fdset() error\n"); + goto test_cleanup; + } rc = select(max_fdset + 1, &fdread, &fdwrite, &fdexcep, &timeout); if(rc == -1) { fprintf(stderr, "select() error\n"); |