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

Commit ac791e65 authored by Ryan Mitchell's avatar Ryan Mitchell
Browse files

Fix idmap2 policy concatenation

When printing warning messages while generating idmaps, put the vertical
bar chracater in between the policies.

Bug: none
Test: manual

Change-Id: I8efee753d9ed7ce99ccafd49b6c8744eea031839
parent 0d609de6
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -269,12 +269,10 @@ Result<std::unique_ptr<const Idmap>> Idmap::FromBinaryStream(std::istream& strea
std::string ConcatPolicies(const std::vector<std::string>& policies) {
  std::string message;
  for (const std::string& policy : policies) {
    if (message.empty()) {
      message.append(policy);
    } else {
      message.append(policy);
    if (!message.empty()) {
      message.append("|");
    }
    message.append(policy);
  }

  return message;