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:
parent
eb2a42a9be
commit
32c8fdf0c5
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue