diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-08-27 10:19:24 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-08-27 10:19:24 +0000 |
| commit | dacff75286cd398b7eecc6995700c5221cbc1464 (patch) | |
| tree | a64037a86564292ef966ce1cbb2b3ec6c2026cf1 | |
| parent | 8302d183f3d1a77b104ef136a10ae2a5a3d8e4f5 (diff) | |
Notes
| -rw-r--r-- | usr.bin/fetch/fetch.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index 840c0d33f6eb..3ae311ac018b 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -781,17 +781,15 @@ main(int argc, char *argv[]) /* timeouts */ if ((s = getenv("FTP_TIMEOUT")) != NULL) { ftp_timeout = strtol(s, &end, 10); - if (*optarg == '\0' || *end != '\0' || ftp_timeout < 0) { - warnx("FTP_TIMEOUT (%s) is not a positive integer", - optarg); + if (*s == '\0' || *end != '\0' || ftp_timeout < 0) { + warnx("FTP_TIMEOUT (%s) is not a positive integer", s); ftp_timeout = 0; } } if ((s = getenv("HTTP_TIMEOUT")) != NULL) { http_timeout = strtol(s, &end, 10); - if (*optarg == '\0' || *end != '\0' || http_timeout < 0) { - warnx("HTTP_TIMEOUT (%s) is not a positive integer", - optarg); + if (*s == '\0' || *end != '\0' || http_timeout < 0) { + warnx("HTTP_TIMEOUT (%s) is not a positive integer", s); http_timeout = 0; } } |
