forked from len0rd/rockbox
don't closedir(NULL)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@460 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a488797db1
commit
a305d315be
1 changed files with 5 additions and 2 deletions
|
|
@ -53,8 +53,11 @@ struct entry {
|
||||||
bool is_dir(char* path)
|
bool is_dir(char* path)
|
||||||
{
|
{
|
||||||
DIR* dir = opendir(path);
|
DIR* dir = opendir(path);
|
||||||
closedir(dir);
|
if(dir) {
|
||||||
return (dir!=0);
|
closedir(dir);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int static
|
int static
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue