Also allow "0" and "no" as false for inmemory_metadata and inmemory_journal

This commit is contained in:
Vitaliy Filippov
2023-07-25 01:48:57 +00:00
parent e4237e9ed8
commit 1fe6b0c0e2
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ int disk_tool_t::prepare_one(std::map<std::string, std::string> options, int is_
for (int i = 0; i < sizeof(allow_additional_params)/sizeof(allow_additional_params[0]); i++)
{
auto it = options.find(allow_additional_params[i]);
if (it != options.end())
if (it != options.end() && it->second != "")
{
sb[it->first] = it->second;
}