From 4084c90135279dcae6ef4aafd2e895dc0eb7d6a9 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Wed, 23 Feb 2000 05:48:03 +0000 Subject: [PATCH] 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@251 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/DOH/Doh/hash.c | 1 - 1 file changed, 1 deletion(-) diff --git a/SWIG/Source/DOH/Doh/hash.c b/SWIG/Source/DOH/Doh/hash.c index b10626549..c293ee2fb 100644 --- a/SWIG/Source/DOH/Doh/hash.c +++ b/SWIG/Source/DOH/Doh/hash.c @@ -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; }