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