diff options
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); |