diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-03-21 03:07:31 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-03-21 03:07:31 +0000 |
| commit | 887e217486db38773b8d12f1fd14c2851aa62886 (patch) | |
| tree | 8d978ccec41e921ee6c16b43caead624607efeaf /apps | |
| parent | 5188931e561c702f3b1a48aee51bfa6ebb9c9a48 (diff) | |
| download | rockbox-887e217486db38773b8d12f1fd14c2851aa62886.zip rockbox-887e217486db38773b8d12f1fd14c2851aa62886.tar.gz rockbox-887e217486db38773b8d12f1fd14c2851aa62886.tar.bz2 rockbox-887e217486db38773b8d12f1fd14c2851aa62886.tar.xz | |
The create_playlist() function didn't correctly handle fd == 0, and didn't force a directory reload
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3490 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/tree.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/tree.c b/apps/tree.c index de41839..b50dd5c 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -1259,7 +1259,7 @@ bool create_playlist(void) lcd_update(); fd = creat(filename,0); - if (!fd) + if (fd < 0) return false; plsize = 0; @@ -1267,6 +1267,5 @@ bool create_playlist(void) close(fd); sleep(HZ); - return false; + return true; } - |