summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-06 06:50:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-06 06:50:35 +0000
commita305d315be91ba41513bfe67093743ae5c5e8621 (patch)
tree85d271bc78bafec728a5ecfaae0c76eb7e8f7e33 /uisimulator
parenta488797db18ad666acccb21f4067b3d16bd0226a (diff)
don't closedir(NULL)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@460 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/tree.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/uisimulator/tree.c b/uisimulator/tree.c
index 5cbc358842..98e5c027aa 100644
--- a/uisimulator/tree.c
+++ b/uisimulator/tree.c
@@ -53,8 +53,11 @@ struct entry {
bool is_dir(char* path)
{
DIR* dir = opendir(path);
- closedir(dir);
- return (dir!=0);
+ if(dir) {
+ closedir(dir);
+ return TRUE;
+ }
+ return FALSE;
}
int static