Add assert to stop infinite loops

This commit is contained in:
bootandy
2019-07-01 22:43:10 +01:00
parent 6e03dd77e6
commit 76d0762c97
+1
View File
@@ -85,6 +85,7 @@ fn examine_dir(
if path_name == *top_dir {
break;
}
assert!(path_name != "");
e_path.pop();
}
}