Fix a possible NULL reference that would be triggered
by invalid input in /etc/crontab. MFC after: 2 days
This commit is contained in:
parent
9c97c8f02d
commit
011fe38c96
@ -41,7 +41,8 @@ env_free(envp)
|
||||
{
|
||||
char **p;
|
||||
|
||||
for (p = envp; *p; p++)
|
||||
if ((p = envp))
|
||||
for (; *p; p++)
|
||||
free(*p);
|
||||
free(envp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user