Commit 54c8e3da authored by Max Kellermann's avatar Max Kellermann

playlist: replaced run-time check with assertion

The "fspath" argument of writeStoredPlaylistToPath() must never be NULL. There should be an assertion on that, instead of a run-time check.
parent dc353eca
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment