]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Don't 'else' after a 'noreturn' call
authorAlex Colomar <alx.manpages@gmail.com>
Tue, 27 Sep 2022 22:03:46 +0000 (00:03 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 5 Dec 2022 09:47:19 +0000 (10:47 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/sulogin.c

index 2c5e094333d67cc81d93a76e0fe2e3841418e141..9bad438e70e2990ce16774a6072af4c92d8bc635 100644 (file)
@@ -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 */
                }