Fix a crash affecting clang

This commit is contained in:
Lubos Dolezel 2018-07-18 23:13:32 +02:00
parent 1515283c7f
commit 1bbb5e40c0

View File

@ -148,7 +148,7 @@ no_fork:
}
char binprefs[64];
if (desc->attrp->psa_binprefs[0])
if (desc && desc->attrp && desc->attrp->psa_binprefs[0])
{
char** new_envp;
int i, env_len = 0;