From 76d0762c97eccc5bf12eca84f8d912d1f9eb4155 Mon Sep 17 00:00:00 2001 From: bootandy Date: Mon, 1 Jul 2019 22:43:10 +0100 Subject: [PATCH] Add assert to stop infinite loops --- src/utils/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 5d634d7..872192e 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -85,6 +85,7 @@ fn examine_dir( if path_name == *top_dir { break; } + assert!(path_name != ""); e_path.pop(); } }