1
0
Fork 0
forked from len0rd/rockbox

Fix error handling in dircache generation.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24730 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Amaury Pouly 2010-02-17 19:31:07 +00:00
parent 020322665b
commit eb54ede182

View file

@ -259,10 +259,10 @@ static int sab_process_dir(unsigned long startcluster, struct dircache_entry *ce
/* second pass: recurse ! */ /* second pass: recurse ! */
ce = first_ce; ce = first_ce;
while(ce) while(rc >= 0 && ce)
{ {
if(ce->name_len != 0 && ce->down != NULL && strcmp(ce->d_name, ".") && strcmp(ce->d_name, "..")) if(ce->name_len != 0 && ce->down != NULL && strcmp(ce->d_name, ".") && strcmp(ce->d_name, ".."))
sab_process_dir(ce->startcluster, ce->down); rc = sab_process_dir(ce->startcluster, ce->down);
ce = ce->next; ce = ce->next;
} }