Fixed so that setting an attribute to a NULL object has no effect.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-02-03 18:01:51 +00:00
commit 44ff6db365

View file

@ -229,6 +229,7 @@ Hash_setattr(DOH *ho, DOH *k, DOH *obj) {
HashNode *n, *prev;
Hash *h;
if (!obj) return 0;
if (!DohCheck(k)) k = find_key(k);
if (!DohCheck(obj)) {
obj = NewString((char *) obj);