From 51ce17cf96e240fe704e6f2952a88f6577124659 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Wed, 16 Nov 2011 09:04:32 +0100 Subject: [PATCH] consider two aprocs are intependent if one of them is NULL --- aucat/aproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aucat/aproc.c b/aucat/aproc.c index f202356..c06c650 100644 --- a/aucat/aproc.c +++ b/aucat/aproc.c @@ -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;