summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f32dbe)
raw | patch | inline | side by side (parent: 0f32dbe)
author | Max Kellermann <max@duempel.org> | |
Fri, 12 Dec 2008 15:00:45 +0000 (16:00 +0100) | ||
committer | Max 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 | patch | blob | history |
diff --git a/src/lyrics.c b/src/lyrics.c
index 7686c13561798101a18cbaf1be83c8f34eea8ec7..8487f0d8542880da175dd6759cb891de6ba68070 100644 (file)
--- a/src/lyrics.c
+++ b/src/lyrics.c
assert(artist != NULL);
assert(title != NULL);
- if (loader == NULL)
- return NULL;
-
loader->artist = g_strdup(artist);
loader->title = g_strdup(title);
loader->callback = callback;