Skip to content

Commit

Permalink
Protect from double path separator
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Jul 2, 2024
1 parent bbe61d0 commit b1c0dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chk-invalid-headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ def main():
errs = {}
checked = {}
for inc in usedby:
items = inc.split("/")
items = [x for x in inc.split("/") if x]
if items[2] == "interface":
continue
for src in usedby[inc].split(" "):
sitems = src.split("/")
sitems = [x for x in src.split("/") if x]
if (items[0] == sitems[0]) and (items[1] == sitems[1]):
continue
if (items[2] == sitems[2]) and (items[2] == "test"):
Expand Down

0 comments on commit b1c0dd9

Please sign in to comment.