From: Max Kellermann Date: Fri, 12 Dec 2008 15:00:45 +0000 (+0100) Subject: lyrics: g_new() cannot fail, don't check X-Git-Tag: release-0.13~71 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cd533fcc84eb1b925c0165d3fb357cbd7845921a;p=ncmpc.git lyrics: g_new() cannot fail, don't check g_new() aborts the program when the kernel runs out of memory. --- 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;