diff options
author | peter <peter@FreeBSD.org> | 1996-09-18 05:45:16 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-09-18 05:45:16 +0000 |
commit | acb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc (patch) | |
tree | 63294164689f80893cbbe6bd77927b5abe4339e9 /contrib/gcc/objc/hash.c | |
parent | d4691e641ba47cb86eef80f5c879e13f9d961724 (diff) | |
download | FreeBSD-src-acb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc.zip FreeBSD-src-acb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc.tar.gz |
Import of 2.7.2.1 into vendor branch
Diffstat (limited to 'contrib/gcc/objc/hash.c')
-rw-r--r-- | contrib/gcc/objc/hash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/gcc/objc/hash.c b/contrib/gcc/objc/hash.c index 3391274..a307759 100644 --- a/contrib/gcc/objc/hash.c +++ b/contrib/gcc/objc/hash.c @@ -243,9 +243,10 @@ hash_value_for_key (cache_ptr cache, const void *key) if (node) do { - if ((*cache->compare_func)(node->key, key)) + if ((*cache->compare_func)(node->key, key)) { retval = node->value; - else + break; + } else node = node->next; } while (!retval && node); |