]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
fix compiler warning: variable was set but never used
authorYang Tse <yangsita@gmail.com>
Mon, 31 May 2010 14:51:36 +0000 (16:51 +0200)
committerYang Tse <yangsita@gmail.com>
Mon, 31 May 2010 14:51:36 +0000 (16:51 +0200)
tests/libtest/lib575.c

index 3bf15ea26511af883a55f525e657a904c01547d2..49a379e804433d16daec5bd76bfb8b9d141eaaa2 100644 (file)
@@ -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");