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/storage | |
parent | df03a7b3f82a5ab97d54c64ef249fe98782e199c (diff) |
config/Global: allow calling config_get_string() with one argument
default_value defaults to nullptr.
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/Configured.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/Configured.cxx b/src/storage/Configured.cxx index adb5c7dc5..d3a55eab8 100644 --- a/src/storage/Configured.cxx +++ b/src/storage/Configured.cxx @@ -68,7 +68,7 @@ CreateConfiguredStorage(EventLoop &event_loop, Error &error) { assert(!error.IsDefined()); - auto uri = config_get_string(ConfigOption::MUSIC_DIR, nullptr); + auto uri = config_get_string(ConfigOption::MUSIC_DIR); if (uri != nullptr && uri_has_scheme(uri)) return CreateConfiguredStorageUri(event_loop, uri, error); @@ -78,5 +78,5 @@ CreateConfiguredStorage(EventLoop &event_loop, Error &error) bool IsStorageConfigured() { - return config_get_string(ConfigOption::MUSIC_DIR, nullptr) != nullptr; + return config_get_string(ConfigOption::MUSIC_DIR) != nullptr; } |