diff options
-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 bac7b0f..1af13ab 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -724,7 +724,7 @@ _http_get_proxy(const char *flags) if (flags != NULL && strchr(flags, 'd') != NULL) return (NULL); if (((p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) && - (purl = fetchParseURL(p))) { + *p && (purl = fetchParseURL(p))) { if (!*purl->scheme) strcpy(purl->scheme, SCHEME_HTTP); if (!purl->port) |