aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_save.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-06 18:43:10 +0200
committerMax Kellermann <max@duempel.org>2008-10-06 18:43:10 +0200
commit43761441c9bbb763ccde3ae2f7f5508f5cec70ec (patch)
tree3d1bb799bf8bc6f78cbf96625f1a6d0a7204227d /src/song_save.c
parentdc245f389cffb1cb50d7dc066827be702b424a01 (diff)
downloadmpd-43761441c9bbb763ccde3ae2f7f5508f5cec70ec.tar.gz
mpd-43761441c9bbb763ccde3ae2f7f5508f5cec70ec.tar.xz
mpd-43761441c9bbb763ccde3ae2f7f5508f5cec70ec.zip
song: get rid of newNullSong()
It didn't save us any lines of code nor did it do anything useful since we would overwrite everything anyways.
Diffstat (limited to '')
-rw-r--r--src/song_save.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song_save.c b/src/song_save.c
index cc5e4e4dd..3cb17f97b 100644
--- a/src/song_save.c
+++ b/src/song_save.c
@@ -111,7 +111,7 @@ void readSongInfoIntoList(FILE *fp, struct songvec *sv,
if (song)
insertSongIntoList(sv, song);
- song = newNullSong();
+ song = xmalloc(sizeof(*song));
song->url = xstrdup(buffer + strlen(SONG_KEY));
song->type = SONG_TYPE_FILE;
song->parentDir = parentDir;