From cd533fcc84eb1b925c0165d3fb357cbd7845921a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 12 Dec 2008 16:00:45 +0100 Subject: [PATCH] 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(-) diff --git a/src/lyrics.c b/src/lyrics.c index 7686c13..8487f0d 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; -- 2.30.2