cron: use (char *)NULL instead of (char *)0 in execle.

Obtained from:	OpenBSD (CVS Rev 1.25)
This commit is contained in:
Pedro F. Giffuni 2016-02-16 20:59:49 +00:00
parent 467f0d55b4
commit b83c6ff578
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295671

View file

@ -337,8 +337,9 @@ child_process(e, u)
_exit(OK_EXIT);
}
# endif /*DEBUGGING*/
execle(shell, shell, "-c", e->cmd, (char *)0, e->envp);
warn("execl: couldn't exec `%s'", shell);
execle(shell, shell, "-c", e->cmd, (char *)NULL,
e->envp);
warn("execle: couldn't exec `%s'", shell);
_exit(ERROR_EXIT);
}
break;