mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-05 05:14:51 +02:00
Fix crash when parsing command line with -noincludeconf=0
This commit is contained in:
@@ -369,7 +369,7 @@ bool ArgsManager::ParseParameters(int argc, const char* const argv[], std::strin
|
||||
bool success = true;
|
||||
if (auto* includes = util::FindKey(m_settings.command_line_options, "includeconf")) {
|
||||
for (const auto& include : util::SettingsSpan(*includes)) {
|
||||
error += "-includeconf cannot be used from commandline; -includeconf=" + include.get_str() + "\n";
|
||||
error += "-includeconf cannot be used from commandline; -includeconf=" + include.write() + "\n";
|
||||
success = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user