summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/tagtree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index d394491..0163ddb 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -1385,6 +1385,8 @@ int tagtree_enter(struct tree_context* c)
seek = dptr->extraseek;
if (seek == -1)
{
+ if(c->filesindir<=2)
+ return 0;
srand(current_tick);
dptr = (tagtree_get_entry(c, 2+(rand() % (c->filesindir-2))));
seek = dptr->extraseek;