fix: avoid infinite loop bug
If the current tag is the last tag and the test fails, the j loop neverends. This prevents that by checking that in the j loop
This commit is contained in:
parent
9fbc34fd3e
commit
c9fd357c06
1 changed files with 3 additions and 0 deletions
|
|
@ -125,6 +125,9 @@ pub fn test_tag(
|
|||
}
|
||||
|
||||
j += 1;
|
||||
if tag == tags.last().unwrap() {
|
||||
break 'tag_loop;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue