diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2011-11-16 08:03:35 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2011-11-16 08:03:35 +0000 |
commit | 9ad7e8589449838ccf1cf91b2a810fbb9f157e7b (patch) | |
tree | 8b2b6eef8f7c154344d8bc4f91912f17ecfa2203 | |
parent | f73241c0c6b1eb631e14abd783b50c4016e0d90e (diff) |
consider there's no dependency between two aprocs, if
one of them is NULL
-rw-r--r-- | usr.bin/aucat/aproc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/aucat/aproc.c b/usr.bin/aucat/aproc.c index 4d8b32fd642..7a69b143b78 100644 --- a/usr.bin/aucat/aproc.c +++ b/usr.bin/aucat/aproc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aproc.c,v 1.66 2011/05/26 07:26:36 ratchov Exp $ */ +/* $OpenBSD: aproc.c,v 1.67 2011/11/16 08:03:34 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -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; |