diff options
Diffstat (limited to 'apps/playlist.c')
-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 35f91e4b81..be831c43c6 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -978,7 +978,7 @@ int playlist_create(char *dir, char *file) | |||
978 | 978 | ||
979 | update_playlist_filename(dir, file); | 979 | update_playlist_filename(dir, file); |
980 | 980 | ||
981 | if (playlist.control_fd > 0) | 981 | if (playlist.control_fd >= 0) |
982 | { | 982 | { |
983 | if (fprintf(playlist.control_fd, "P:%d:%s:%s\n", | 983 | if (fprintf(playlist.control_fd, "P:%d:%s:%s\n", |
984 | PLAYLIST_CONTROL_FILE_VERSION, dir, file) > 0) | 984 | PLAYLIST_CONTROL_FILE_VERSION, dir, file) > 0) |