]> granicus.if.org Git - curl/commitdiff
The select() timeout is better not static since some implementation actually
authorDaniel Stenberg <daniel@haxx.se>
Mon, 29 Mar 2004 21:29:24 +0000 (21:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Mar 2004 21:29:24 +0000 (21:29 +0000)
might change it. I don't *think* it does it when the timeout is 0,0 but it
is better to be sure...

lib/hostip.c

index 1bf8fd4a34c78906c0d78e73d8bac4ccd821baa7..9e13423074b7a48b0c02efa1fb7b2a698dd2f8a2 100644 (file)
@@ -478,7 +478,7 @@ CURLcode Curl_is_resolved(struct connectdata *conn,
                           struct Curl_dns_entry **dns)
 {
   fd_set read_fds, write_fds;
-  static const struct timeval tv={0,0};
+  struct timeval tv={0,0};
   int count;
   struct SessionHandle *data = conn->data;
   int nfds;