mirror of
https://github.com/nasa/trick.git
synced 2025-01-29 15:43:57 +00:00
make_makefile_swig sometimes goes into infinite loop #561
Found a similar loop in make_makefile_src that can go into an infinite loop.
This commit is contained in:
parent
7a3fc1353e
commit
8be09638e7
@ -133,7 +133,7 @@ if (scalar @exclude_dirs) {
|
||||
# Error check - delete any element that is null
|
||||
# (note: sort forced all blank names to front of array
|
||||
@exclude_dirs = map { s/(^\s+|\s+$)//g ; $_ } @exclude_dirs ;
|
||||
while ( not length @exclude_dirs[0] ) {
|
||||
while ( scalar @exclude_dirs and not length @exclude_dirs[0] ) {
|
||||
# Delete an element from the left side of an array (element zero)
|
||||
shift @exclude_dirs ;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user