config file: if parameter line has no equal sign, default value to 1

pull/41/head
jackun 4 years ago
parent 27848bd253
commit 74c9803087
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -27,6 +27,8 @@ void parseConfigLine(std::string line){
size_t equal = line.find("=");
if(equal==std::string::npos)
{
if (!line.empty())
options.insert({line, "1"});
return;
}

Loading…
Cancel
Save