Fix a possible NULL reference that would be triggered

by invalid input in /etc/crontab.

MFC after:	2 days
This commit is contained in:
davidn 2001-07-20 06:46:48 +00:00
parent 9c97c8f02d
commit 011fe38c96

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);
}