aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-05-31 16:51:36 +0200
committerYang Tse <yangsita@gmail.com>2010-05-31 16:51:36 +0200
commita324fa7b97657bbd52d7358dd800472f3beb10e1 (patch)
tree84d2b61ae09867a5324aa37e38d6cbd48a274a05 /tests
parenta9483b1f4acf80859f252832ec69a21b683556a3 (diff)
fix compiler warning: variable was set but never used
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib575.c4
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");