Use (char *)NULL to terminated to argument list for execl().
Without this cast the compiler cannot know that it has to convert the null pointer constant NULL to a null pointer.
This commit is contained in:
parent
82f1f29be8
commit
8ca63b7ab7
@ -299,6 +299,6 @@ doshell(void)
|
||||
shell = pwd->pw_shell;
|
||||
if (*shell == '\0')
|
||||
shell = _PATH_BSHELL;
|
||||
execl(shell, basename(shell), NULL);
|
||||
execl(shell, basename(shell), (char *)NULL);
|
||||
err(1, "%s", shell);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user