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
90e655ea4e
commit
4a9e66b57b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80030
@ -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