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:
Jörg Hohensohn 2005-01-13 23:40:00 +00:00
parent 5265edda08
commit 37d4730677

View file

@ -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]);