From c61c61a4f8bbf33b480e4db209a6ba78119e11fa Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 22 Jun 1995 20:36:06 +0000 Subject: (ports_reallocate_from_external): Parenthesize flags test correctly. --- libports/reallocate-from-external.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libports') diff --git a/libports/reallocate-from-external.c b/libports/reallocate-from-external.c index 74e6d76c..7e6ea1df 100644 --- a/libports/reallocate-from-external.c +++ b/libports/reallocate-from-external.c @@ -49,7 +49,7 @@ ports_reallocate_from_external (void *portstruct, mach_port_t receive) dropref = 1; pi->flags &= ~PORT_HAS_SENDRIGHTS; } - else if ((pi->flags & PORT_HAS_SENDRIGHTS == 0) && stat.mps_srights) + else if (((pi->flags & PORT_HAS_SENDRIGHTS) == 0) && stat.mps_srights) { pi->flags |= PORT_HAS_SENDRIGHTS; pi->refcnt++; -- cgit v1.2.3