mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
(coll_hash_next): Set STATE to 0 before returning when the list is
exhausted. This interacts with [Dictionary -freeEnumState:] and [Set -freeEnumState]. This will all be cleaned up when we start using Albin Jones' tables. (This bug found by Allan Clearwaters.) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@634 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
317605dc18
commit
be198c6b1d
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Hash tables for Objective C internal structures
|
||||
Copyright (C) 1993 Free Software Foundation, Inc.
|
||||
Copyright (C) 1993, 1995 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
|
@ -290,6 +290,7 @@ coll_hash_next (coll_cache_ptr cache, void** state)
|
|||
} else
|
||||
{
|
||||
(*objc_free)(*state);
|
||||
*state = (void*)0;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue