mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Fix a dircache NULL-pointer dereference.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24835 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
28bc321dbb
commit
4832c3ce42
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ static int sab_process_dir(unsigned long startcluster, struct dircache_entry *ce
|
|||
ce->d_name = "..";
|
||||
ce->name_len = 3;
|
||||
ce->attribute = FAT_ATTR_DIRECTORY;
|
||||
ce->startcluster = first_ce->up->startcluster;
|
||||
ce->startcluster = (first_ce->up ? first_ce->up->startcluster : 0);
|
||||
ce->size = 0;
|
||||
ce->down = first_ce->up;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue