aboutsummaryrefslogtreecommitdiffstats
path: root/src/lyrics.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-12 16:00:45 +0100
committerMax Kellermann <max@duempel.org>2008-12-12 16:00:45 +0100
commitcd533fcc84eb1b925c0165d3fb357cbd7845921a (patch)
tree9483cc79a4f9c5c43867a1d6c154b2ce9b82d612 /src/lyrics.c
parent0f32dbe7603ae08ed94a911887ec748892932682 (diff)
downloadmpd-cd533fcc84eb1b925c0165d3fb357cbd7845921a.tar.gz
mpd-cd533fcc84eb1b925c0165d3fb357cbd7845921a.tar.xz
mpd-cd533fcc84eb1b925c0165d3fb357cbd7845921a.zip
lyrics: g_new() cannot fail, don't check
g_new() aborts the program when the kernel runs out of memory.
Diffstat (limited to 'src/lyrics.c')
-rw-r--r--src/lyrics.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lyrics.c b/src/lyrics.c
index 7686c1356..8487f0d85 100644
--- a/src/lyrics.c
+++ b/src/lyrics.c
@@ -255,9 +255,6 @@ lyrics_load(const char *artist, const char *title,
assert(artist != NULL);
assert(title != NULL);
- if (loader == NULL)
- return NULL;
-
loader->artist = g_strdup(artist);
loader->title = g_strdup(title);
loader->callback = callback;