diff options
Diffstat (limited to 'lib/libfetch')
| -rw-r--r-- | lib/libfetch/http.c | 2 |
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))) { |
