From cd533fcc84eb1b925c0165d3fb357cbd7845921a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 12 Dec 2008 16:00:45 +0100 Subject: lyrics: g_new() cannot fail, don't check g_new() aborts the program when the kernel runs out of memory. --- src/lyrics.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3