aboutsummaryrefslogtreecommitdiff
path: root/lib/libfetch/ftp.c
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2003-03-19 21:39:00 +0000
committerMike Makonnen <mtm@FreeBSD.org>2003-03-19 21:39:00 +0000
commit4418f9df3027bf6a443be027c86f9338540cf6d3 (patch)
tree2f960bd2f340a6f74b7dda4490f2d4333e0bd78f /lib/libfetch/ftp.c
parent35522a0aa12ee9a9e482b0a4543da8372b3c95bc (diff)
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r--lib/libfetch/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index b2550b11289a..ffc4462f20bd 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -894,7 +894,7 @@ _ftp_get_proxy(const char *flags)
struct url *purl;
char *p;
- if (strchr(flags, 'd') != NULL)
+ if (flags != NULL && strchr(flags, 'd') != NULL)
return (NULL);
if (((p = getenv("FTP_PROXY")) || (p = getenv("ftp_proxy")) ||
(p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) &&