detect_proxy: only show proxy use if it had contents

This commit is contained in:
Daniel Stenberg 2018-04-19 14:59:06 +02:00
parent 6d3c9c8ab4
commit 5c8521851f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;
}