diff options
author | Max Kellermann <max@duempel.org> | 2008-12-12 16:00:45 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-12 16:00:45 +0100 |
commit | cd533fcc84eb1b925c0165d3fb357cbd7845921a (patch) | |
tree | 9483cc79a4f9c5c43867a1d6c154b2ce9b82d612 /src | |
parent | 0f32dbe7603ae08ed94a911887ec748892932682 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/lyrics.c | 3 |
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; |