Fixed particularly sneaky bug in Hash_setattr() when an existing hash table item

is set to a new value (the old value was improperly deleted in certain cases).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-02-23 05:48:03 +00:00
commit 32c8fdf0c5

View file

@ -243,7 +243,6 @@ Hash_setattr(DOH *ho, DOH *k, DOH *obj) {
HashNode *nn;
if (prev) {
prev->next = n->next;
h->hashtable[hv] = n->next;
} else {
h->hashtable[hv] = n->next;
}