execl() should be use NULL not 0

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2006-12-28 22:26:02 +01:00
parent 8174c9ca72
commit d057115966
2 changed files with 3 additions and 3 deletions

View file

@ -324,9 +324,9 @@ doshell() {
shname = shell;
if (cflg)
execl(shell, shname, "-c", cflg, 0);
execl(shell, shname, "-c", cflg, NULL);
else
execl(shell, shname, "-i", 0);
execl(shell, shname, "-i", NULL);
perror(shell);
fail();