From 026c0cd4559e8d8a9d9b5fcfd0010fefad296c40 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 22 Jun 1995 20:35:11 +0000 Subject: (ports_get_right): Parenthesize flag test correctly. --- libports/get-right.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libports') diff --git a/libports/get-right.c b/libports/get-right.c index 880c866b..dd7f5b6a 100644 --- a/libports/get-right.c +++ b/libports/get-right.c @@ -31,7 +31,7 @@ ports_get_right (void *port) mutex_lock (&_ports_lock); pi->mscount++; - if (pi->flags & PORT_HAS_SENDRIGHTS == 0) + if ((pi->flags & PORT_HAS_SENDRIGHTS) == 0) { pi->flags |= PORT_HAS_SENDRIGHTS; pi->refcnt++; -- cgit v1.2.3