Code

screen_lyrics: return if fork fails
authorMax Kellermann <max@duempel.org>
Thu, 11 Apr 2013 07:30:37 +0000 (09:30 +0200)
committerMax Kellermann <max@duempel.org>
Thu, 11 Apr 2013 07:32:26 +0000 (09:32 +0200)
Avoids the clang warning due to uninitialized "status".

src/screen_lyrics.c

index 881db2989421b27682959df75a5331a15276e268..066fe6edc2ab69baaaf04031dae5f4f574f7596e 100644 (file)
@@ -394,6 +394,8 @@ lyrics_edit(void)
        pid_t pid = fork();
        if (pid == -1) {
                screen_status_printf(("%s (%s)"), _("Can't start editor"), g_strerror(errno));
+               ncu_init();
+               return;
        } else if (pid == 0) {
                char path[1024];
                path_lyr_file(path, sizeof(path), current.artist, current.title);