Skip to content

Commit 7b398ee

Browse files
committed
fixup! src: support namespaced options
1 parent 0d340fb commit 7b398ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_config_file.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ ParseResult ConfigReader::ProcessOptionValue(
4848
case options_parser::OptionType::kBoolean: {
4949
bool result;
5050
if (ondemand_value.get_bool().get(result)) {
51-
FPrintF(stderr, "Invalid value for %s\n", it->first.c_str());
51+
FPrintF(stderr, "Invalid value for %s\n", option_name.c_str());
5252
return ParseResult::InvalidContent;
5353
}
5454

5555
if (result) {
5656
// If the value is true, we need to set the flag
57-
node_options_.push_back(it->first);
57+
node_options_.push_back(option_name);
5858
}
5959

6060
break;

0 commit comments

Comments
 (0)