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:
Love Hörnquist Åstrand
2005-04-06 11:20:32 +00:00
parent 032007ddbd
commit b88827c01d

View File

@@ -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);
}