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.
This commit is contained in:
Max Kellermann 2008-09-07 13:37:20 +02:00
parent dc353eca80
commit 54c8e3daaf

View File

@ -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) {