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
14ecc3c0f0
commit
7ff34dc884
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121741
@ -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