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

@@ -26,9 +26,7 @@ bool
ConfigureFS(Error &error)
{
#ifdef HAVE_FS_CHARSET
const char *charset = nullptr;
charset = config_get_string(ConfigOption::FS_CHARSET, nullptr);
const char *charset = config_get_string(ConfigOption::FS_CHARSET);
return charset == nullptr || SetFSCharset(charset, error);
#else
(void)error;