diff options
author | Max Kellermann <max@duempel.org> | 2015-06-26 08:05:20 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-06-26 08:06:40 +0200 |
commit | 58996b841ac1a19794d704b5622480adc165c434 (patch) | |
tree | 8426bcf8bfbb686a884e2fc513b1c95b518b02ff /src/input/plugins/CurlInputPlugin.cxx | |
parent | df03a7b3f82a5ab97d54c64ef249fe98782e199c (diff) | |
download | mpd-58996b841ac1a19794d704b5622480adc165c434.tar.gz mpd-58996b841ac1a19794d704b5622480adc165c434.tar.xz mpd-58996b841ac1a19794d704b5622480adc165c434.zip |
config/Global: allow calling config_get_string() with one argument
default_value defaults to nullptr.
Diffstat (limited to 'src/input/plugins/CurlInputPlugin.cxx')
-rw-r--r-- | src/input/plugins/CurlInputPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index ade8324ec..814fe7a32 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -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, ""); } |