summaryrefslogtreecommitdiff
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-03-29 15:15:38 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-03-29 15:15:38 +0000
commit762892c0475820d27be6c3e864b5ed6d9e4d331b (patch)
treef79a842824bc5a52968d83828c56e002ae1668c1 /lib/libfetch/http.c
parentdfcf25920b9c355b0c2371822f52e4653642c6a0 (diff)
Notes
Diffstat (limited to 'lib/libfetch/http.c')
-rw-r--r--lib/libfetch/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 1fc4cd5932c0..86f7075268fd 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -701,7 +701,7 @@ _http_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("HTTP_PROXY")) || (p = getenv("http_proxy"))) &&
(purl = fetchParseURL(p))) {