diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tagtree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c index c188a900fa..12a7a74e5d 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c | |||
@@ -1627,6 +1627,9 @@ static int load_root(struct tree_context *c) | |||
1627 | if (menu == NULL) | 1627 | if (menu == NULL) |
1628 | return 0; | 1628 | return 0; |
1629 | 1629 | ||
1630 | if (menu->itemcount > c->cache.max_entries) | ||
1631 | panicf("%s tree_cache too small", __func__); | ||
1632 | |||
1630 | for (i = 0; i < menu->itemcount; i++) | 1633 | for (i = 0; i < menu->itemcount; i++) |
1631 | { | 1634 | { |
1632 | dptr->name = menu->items[i]->name; | 1635 | dptr->name = menu->items[i]->name; |