summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-19 14:59:06 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-19 14:59:06 +0200
commit5c8521851f6f9c8b76e369ce87dd57e5ee6d38e7 (patch)
treeb9c7308ca895fd13a6ff1e341ba0180b70110e07
parent6d3c9c8ab4754ea21622d65f11df403bbaf46e2d (diff)
downloadcurl-5c8521851f6f9c8b76e369ce87dd57e5ee6d38e7.tar.gz
detect_proxy: only show proxy use if it had contents
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 2491fa2da..eb1fc2220 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2682,7 +2682,8 @@ static char *detect_proxy(struct connectdata *conn)
proxy = curl_getenv(envp);
}
}
- infof(conn->data, "Uses proxy env variable %s == '%s'\n", envp, proxy);
+ if(proxy)
+ infof(conn->data, "Uses proxy env variable %s == '%s'\n", envp, proxy);
return proxy;
}