From 9af9cd4bf95871909776499693ca3a3144ba3bb0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 11 Apr 2013 09:30:37 +0200 Subject: [PATCH] screen_lyrics: return if fork fails Avoids the clang warning due to uninitialized "status". --- src/screen_lyrics.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2