Code

lyrics: g_new() cannot fail, don't check
authorMax Kellermann <max@duempel.org>
Fri, 12 Dec 2008 15:00:45 +0000 (16:00 +0100)
committerMax Kellermann <max@duempel.org>
Fri, 12 Dec 2008 15:00:45 +0000 (16:00 +0100)
g_new() aborts the program when the kernel runs out of memory.

src/lyrics.c

index 7686c13561798101a18cbaf1be83c8f34eea8ec7..8487f0d8542880da175dd6759cb891de6ba68070 100644 (file)
@@ -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;