Ondio bugfix: recording file number generator didn't release the directory handle, causing a panic after several calls
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5564 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5265edda08
commit
37d4730677
1 changed files with 3 additions and 0 deletions
|
@ -185,7 +185,10 @@ char *rec_create_filename(char *buffer)
|
|||
/* walk through the directory content */
|
||||
entry = readdir(dir);
|
||||
if (!entry)
|
||||
{
|
||||
closedir(dir);
|
||||
break; /* end of dir */
|
||||
}
|
||||
if (strncasecmp(entry->d_name, "rec_", 4))
|
||||
continue; /* no recording file */
|
||||
curr_rec_file = atoi(&entry->d_name[4]);
|
||||
|
|
Loading…
Reference in a new issue