aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/song.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/song.c b/src/song.c
index c1f465177..ed88f1f60 100644
--- a/src/song.c
+++ b/src/song.c
@@ -51,7 +51,11 @@ Song * newNullSong() {
}
Song * newSong(char * utf8url, SONG_TYPE type) {
- Song * song = newNullSong();
+ Song * song = NULL;
+
+ if(strchr(utf8url, '\n')) return NULL;
+
+ song = newNullSong();
song->utf8url = strdup(utf8url);
song->type = type;