]> granicus.if.org Git - curl/commitdiff
lib573: do not compare double for exact match
authorTor Arntsen <tor@spacetec.no>
Thu, 27 May 2010 18:20:08 +0000 (20:20 +0200)
committerKamil Dudka <kdudka@redhat.com>
Thu, 27 May 2010 18:20:08 +0000 (20:20 +0200)
tests/libtest/lib573.c

index db5889e3485573aec5d75c19f39363b132189ae7..5edb1814a71642af61d4825fd8e0ca4aecf3d187 100644 (file)
@@ -83,8 +83,8 @@ int test(char *URL)
   }
 
   curl_easy_getinfo(c, CURLINFO_CONNECT_TIME, &connect_time);
-  if (connect_time==0.0) {
-    fprintf(stderr, "connect time is 0.0\n");
+  if (connect_time <= 0.0) {
+    fprintf(stderr, "connect time is <=0.0\n");
     res = TEST_ERR_MAJOR_BAD;
   }