summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 1fc4cd5..86f7075 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))) {
OpenPOWER on IntegriCloud