(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:
Andrew McCallum 1995-10-26 00:48:55 +00:00
parent 317605dc18
commit be198c6b1d

View file

@ -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;
}
}