diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-07-08 06:31:23 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-07-08 06:31:23 +0000 |
| commit | f937912b5c2a3d6030b78eacfe15d57d9b3483ae (patch) | |
| tree | d200b6fc0a286633e058fd5c25f0387033e53fea | |
| parent | 14078864a02665179fcd673aa1fdd50fafa9c563 (diff) | |
| download | rockbox-f937912b5c2a3d6030b78eacfe15d57d9b3483ae.zip rockbox-f937912b5c2a3d6030b78eacfe15d57d9b3483ae.tar.gz rockbox-f937912b5c2a3d6030b78eacfe15d57d9b3483ae.tar.bz2 rockbox-f937912b5c2a3d6030b78eacfe15d57d9b3483ae.tar.xz | |
The creation of the playlist control file failed when control_fd == 0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3814 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/playlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 35f91e4..be831c4 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -978,7 +978,7 @@ int playlist_create(char *dir, char *file) update_playlist_filename(dir, file); - if (playlist.control_fd > 0) + if (playlist.control_fd >= 0) { if (fprintf(playlist.control_fd, "P:%d:%s:%s\n", PLAYLIST_CONTROL_FILE_VERSION, dir, file) > 0) |