From 717dcd95e7d9bf77c9855e3e13eada15900b3231 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 20 Jun 1995 16:35:38 +0000 Subject: (ports_lookup_port): Remove assignment from if test. --- libports/lookup-port.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libports') diff --git a/libports/lookup-port.c b/libports/lookup-port.c index 3db912c6..94b3c2a7 100644 --- a/libports/lookup-port.c +++ b/libports/lookup-port.c @@ -35,8 +35,11 @@ ports_lookup_port (struct port_bucket *bucket, pi = ihash_find (bucket->htable, port); else for (bucket = _ports_all_buckets; bucket; bucket = bucket->next) - if (pi = ihash_find (bucket->htable, port)) - break; + { + pi = ihash_find (bucket->htable, port); + if (pi) + break; + } if (pi && class && pi->class != class) pi = 0; -- cgit v1.2.3