From 8cce4557e00e9e556e49b10e604eea2e88d3846d Mon Sep 17 00:00:00 2001 From: Alex Colomar Date: Wed, 28 Sep 2022 00:03:46 +0200 Subject: [PATCH] Don't 'else' after a 'noreturn' call Signed-off-by: Alejandro Colomar --- src/sulogin.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sulogin.c b/src/sulogin.c index 2c5e0943..9bad438e 100644 --- a/src/sulogin.c +++ b/src/sulogin.c @@ -202,10 +202,9 @@ static void catch_signals (unused int sig) execl (PATH_TELINIT, "telinit", RUNLEVEL, (char *) 0); #endif exit (0); - } else { - STRFCPY (pass, cp); - strzero (cp); } + STRFCPY (pass, cp); + strzero (cp); if (valid (pass, &pwent)) { /* check encrypted passwords ... */ break; /* ... encrypted passwords matched */ }