Fix oops in r30242. I didn't want to change/reduce the buffer size.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30244 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
589879bb3d
commit
95c1e7d8b0
1 changed files with 1 additions and 1 deletions
|
@ -1012,7 +1012,7 @@ void tree_mem_init(void)
|
|||
cache->name_buffer = buffer_alloc(cache->name_buffer_size);
|
||||
|
||||
cache->max_entries = global_settings.max_files_in_dir;
|
||||
cache->entries = buffer_alloc(cache->max_entries*(sizeof(cache->entries)));
|
||||
cache->entries = buffer_alloc(cache->max_entries*(sizeof(struct entry)));
|
||||
tree_get_filetypes(&filetypes, &filetypes_count);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue