From 6489019322e07411a0c9552644d8ddb62961d0eb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:11 +0200 Subject: assert song->url != NULL --- src/song.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/song.c') diff --git a/src/song.c b/src/song.c index a8ab4284f..cc1547d10 100644 --- a/src/song.c +++ b/src/song.c @@ -315,6 +315,9 @@ char *get_song_url(char *path_max_tmp, Song *song) { if (!song) return NULL; + + assert(song->url != NULL); + if (!song->parentDir || !song->parentDir->path) strcpy(path_max_tmp, song->url); else -- cgit v1.2.3