if (line[0] =='[') { //section
auto sectionEnd = line.find(']');
if (sectionEnd == std::string::npos) {
mdclog_write(MDCLOG_ERR, "Error section definition: %s ", line.c_str());
section.clear();
return -1;
if (line[0] =='[') { //section
auto sectionEnd = line.find(']');
if (sectionEnd == std::string::npos) {
mdclog_write(MDCLOG_ERR, "Error section definition: %s ", line.c_str());
section.clear();
return -1;
if (value.length() == 0) {
mdclog_write(MDCLOG_ERR, "problematic entry: %s no value ", line.c_str());
if (value.length() == 0) {
mdclog_write(MDCLOG_ERR, "problematic entry: %s no value ", line.c_str());