Add NOTREACHED after err() inside of a switch statement.
This commit is contained in:
parent
4dd40cb974
commit
6dc80df9f4
@ -242,6 +242,7 @@ exec_shell(const char *command, char *use_shell, char *use_name)
|
||||
switch(pid = vfork()) {
|
||||
case -1: /* error */
|
||||
err(1, "vfork");
|
||||
/* NOTREACHED */
|
||||
case 0: /* child */
|
||||
(void)sigsetmask(omask);
|
||||
execl(use_shell, use_name, "-c", command, (char *)NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user