Fix a possible NULL reference that would be triggered

by invalid input in /etc/crontab.

MFC after:	2 days
This commit is contained in:
David Nugent 2001-07-20 06:46:48 +00:00
parent 90e655ea4e
commit 4a9e66b57b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80030

View File

@ -41,7 +41,8 @@ env_free(envp)
{
char **p;
for (p = envp; *p; p++)
if ((p = envp))
for (; *p; p++)
free(*p);
free(envp);
}