aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index c62af08..b04aae6 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -58,7 +58,7 @@ int rmtree(char *_path) {
stat(d_entity->d_name, &st);
is_dir = S_ISDIR(st.st_mode);
#else
- is_dir = DT_DIR == rec->d_type;
+ is_dir = DT_DIR == d_entity->d_type;
#endif
// Push directories on to the stack first
if (is_dir) {