Merge "startop: Fix the if condition to prevent duplicate filename for file id 0 in host compiler."
This commit is contained in:
committed by
Android (Google) Code Review
commit
7bea08b7c2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user