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

Commit d80dfef9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix cannot handle with empty line in config file"

parents 52b7f312 c037cd39
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;
    }