Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2d40486 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix cannot handle with empty line in config file" am: d80dfef9 am: b81b0428

parents c25c53eb b81b0428
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -46,6 +46,10 @@ std::optional<ConfigCache> LegacyConfigFile::Read(size_t temp_devices_capacity)
  while (std::getline(config_file, line)) {
    ++line_num;
    line = common::StringTrim(std::move(line));
    if (line.empty()) {
      continue;
    }

    if (line.front() == '\0' || line.front() == '#') {
      continue;
    }