From 43761441c9bbb763ccde3ae2f7f5508f5cec70ec Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 6 Oct 2008 18:43:10 +0200 Subject: 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. --- src/song_save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/song_save.c') 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; -- cgit v1.2.3