aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/song.c')
-rw-r--r--src/song.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song.c b/src/song.c
index 14e4ff9b7..a54c71735 100644
--- a/src/song.c
+++ b/src/song.c
@@ -118,7 +118,7 @@ void freeSongList(SongList * list) {
}
void printSongUrl(FILE * fp, Song * song) {
- if(song->parentDir) {
+ if(song->parentDir && song->parentDir->path) {
myfprintf(fp, "%s%s/%s\n", SONG_FILE,
getDirectoryPath(song->parentDir), song->url);
}