diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2005-08-24 12:28:05 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2005-08-24 12:28:05 +0000 |
| commit | 2738229eb8e75c7a89ff0ef9b0ea3a83e7696eee (patch) | |
| tree | 583621051451b87ea9778fec1c4baabb92d98961 /lib/libfetch | |
| parent | b7cc036298e58b138b1467d570888eadc591fee4 (diff) | |
Notes
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 bac7b0f75302..1af13abfd10b 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) |
