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

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;