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

@@ -47,7 +47,7 @@ int main(int argc, char **argv)
ConfigOption option = ParseConfigOptionName(name);
const char *value = option != ConfigOption::MAX
? config_get_string(option, nullptr)
? config_get_string(option)
: nullptr;
int ret;
if (value != NULL) {