aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/storedPlaylist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/storedPlaylist.c b/src/storedPlaylist.c
index a38511ea1..b806ecf0b 100644
--- a/src/storedPlaylist.c
+++ b/src/storedPlaylist.c
@@ -66,8 +66,7 @@ static int writeStoredPlaylistToPath(int fd, List *list, const char *fspath)
FILE *file;
char *s;
- if (fspath == NULL)
- return -1;
+ assert(fspath != NULL);
while (!(file = fopen(fspath, "w")) && errno == EINTR);
if (file == NULL) {