use NULL as last argument to execl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14745 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1318,9 +1318,9 @@ shell(int argc, char **argv)
|
||||
else
|
||||
shellname++;
|
||||
if (argc > 1)
|
||||
execl(shellp, shellname, "-c", &saveline[1], 0);
|
||||
execl(shellp, shellname, "-c", &saveline[1], NULL);
|
||||
else
|
||||
execl(shellp, shellname, 0);
|
||||
execl(shellp, shellname, NULL);
|
||||
perror("Execl");
|
||||
_exit(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user