mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Add assert to stop infinite loops
This commit is contained in:
@@ -85,6 +85,7 @@ fn examine_dir(
|
||||
if path_name == *top_dir {
|
||||
break;
|
||||
}
|
||||
assert!(path_name != "");
|
||||
e_path.pop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user