MFC r295671:

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

Obtained from:	OpenBSD (CVS Rev 1.25)
This commit is contained in:
pfg 2016-03-07 16:12:04 +00:00
parent 47594cfc51
commit b970e68474

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