ConfigFile: fix typo (parser breakage)

This commit is contained in:
Max Kellermann 2015-01-22 19:08:09 +01:00
parent 6725c2afa1
commit 8f2ca8f085

View File

@ -141,7 +141,7 @@ Append(ConfigBlock *&head, ConfigBlock *p)
static bool
ReadConfigBlock(ConfigData &config_data, BufferedReader &reader,
const char *name, ConfigOption o,
const char *name, ConfigBlockOption o,
Tokenizer &tokenizer,
Error &error)
{
@ -278,7 +278,7 @@ ReadConfigFile(ConfigData &config_data, BufferedReader &reader, Error &error)
tokenizer, error))
return false;
} else if ((bo = ParseConfigBlockOptionName(name)) != ConfigBlockOption::MAX) {
if (!ReadConfigBlock(config_data, reader, name, o,
if (!ReadConfigBlock(config_data, reader, name, bo,
tokenizer, error))
return false;
} else {