diff options
-rw-r--r-- | libports/get-right.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |