summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
Diffstat (limited to 'libports')
-rw-r--r--libports/lookup-port.c7
1 files changed, 5 insertions, 2 deletions
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;