consider two aprocs are intependent if one of them is NULL

This commit is contained in:
Alexandre Ratchov 2011-11-16 09:04:32 +01:00
parent f37ef2f43c
commit 51ce17cf96
1 changed files with 2 additions and 0 deletions

View File

@ -279,6 +279,8 @@ aproc_depend(struct aproc *p, struct aproc *dep)
if (p == dep)
return 1;
if (p == NULL)
return 0;
LIST_FOREACH(i, &p->ins, ient) {
if (i->wproc && aproc_depend(i->wproc, dep))
return 1;