summaryrefslogtreecommitdiff
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-09-28 01:51:35 +0000
committerRaymond Hettinger <python@rcn.com>2004-09-28 01:51:35 +0000
commita22f02a0ae12f6c10c270e1e45374872c811cd19 (patch)
tree62f946e27ed5e8aa918d729e82fd6dfef243efcb /Objects/setobject.c
parent440ed1adcbd81ebea1e54b291881990932319756 (diff)
downloadcpython-a22f02a0ae12f6c10c270e1e45374872c811cd19.tar.gz
Use Py_CLEAR(). Add unrelated test.
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 289d5d3d96..d57217cba3 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -105,7 +105,7 @@ frozenset_dict_wrapper(PyObject *d)
w = (PySetObject *)make_new_set(&PyFrozenSet_Type, NULL);
if (w == NULL)
return NULL;
- Py_DECREF(w->data);
+ Py_CLEAR(w->data);
Py_INCREF(d);
w->data = d;
return (PyObject *)w;