config/Global: allow calling config_get_string() with one argument

default_value defaults to nullptr.
This commit is contained in:
Max Kellermann
2015-06-26 08:05:20 +02:00
parent df03a7b3f8
commit 58996b841a
7 changed files with 9 additions and 12 deletions

View File

@@ -566,9 +566,9 @@ input_curl_init(const ConfigBlock &block, Error &error)
if (proxy == nullptr) {
/* deprecated proxy configuration */
proxy = config_get_string(ConfigOption::HTTP_PROXY_HOST, nullptr);
proxy = config_get_string(ConfigOption::HTTP_PROXY_HOST);
proxy_port = config_get_positive(ConfigOption::HTTP_PROXY_PORT, 0);
proxy_user = config_get_string(ConfigOption::HTTP_PROXY_USER, nullptr);
proxy_user = config_get_string(ConfigOption::HTTP_PROXY_USER);
proxy_password = config_get_string(ConfigOption::HTTP_PROXY_PASSWORD,
"");
}