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

Commit 7bea08b7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "startop: Fix the if condition to prevent duplicate filename for file id 0 in host compiler."

parents e214905a 90c2b028
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -139,7 +139,9 @@ def build_protobuf(page_runs, inode2filename, filters=[]):
      continue

    file_id = file_id_map.get(filename)
    if not file_id:
    # file_id could 0, which satisfies "if file_id" and causes duplicate
    # filename for file id 0.
    if file_id is None:
      file_id = file_id_counter
      file_id_map[filename] = file_id_counter
      file_id_counter = file_id_counter + 1