mirror of https://github.com/ericonr/sndio.git
consider two aprocs are intependent if one of them is NULL
This commit is contained in:
parent
f37ef2f43c
commit
51ce17cf96
|
@ -279,6 +279,8 @@ aproc_depend(struct aproc *p, struct aproc *dep)
|
||||||
|
|
||||||
if (p == dep)
|
if (p == dep)
|
||||||
return 1;
|
return 1;
|
||||||
|
if (p == NULL)
|
||||||
|
return 0;
|
||||||
LIST_FOREACH(i, &p->ins, ient) {
|
LIST_FOREACH(i, &p->ins, ient) {
|
||||||
if (i->wproc && aproc_depend(i->wproc, dep))
|
if (i->wproc && aproc_depend(i->wproc, dep))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue