From: Max Kellermann Date: Thu, 11 Apr 2013 07:30:37 +0000 (+0200) Subject: screen_lyrics: return if fork fails X-Git-Tag: release-0.21~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9af9cd4bf95871909776499693ca3a3144ba3bb0;p=ncmpc.git screen_lyrics: return if fork fails Avoids the clang warning due to uninitialized "status". --- diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 881db29..066fe6e 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -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);