diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-05-06 06:50:35 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-06 06:50:35 +0000 |
commit | a305d315be91ba41513bfe67093743ae5c5e8621 (patch) | |
tree | 85d271bc78bafec728a5ecfaae0c76eb7e8f7e33 /uisimulator | |
parent | a488797db18ad666acccb21f4067b3d16bd0226a (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.c | 7 |
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 |