summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 75562b3..1e3a833 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -619,7 +619,7 @@ static bool dirbrowse(void)
break;
}
/* if we are in /, nothing to do */
- if (tc.dirlevel != 0 || strcmp(currdir,"/"))
+ if (tc.dirlevel == 0 && !strcmp(currdir,"/"))
break;
if (id3db)