summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-08-19 09:22:28 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-08-19 09:22:28 (GMT)
commit7fda33b56a03330be6cae7d4dfb47045895630f8 (patch)
tree199e5e53988f798c8e937bb0cbd7f8a7c3771ac6 /Objects
parent6b9bfe801dbf2413b762a0a51ea67d062f94d8fa (diff)
parent6b962860e2bd2d08d8d5d38969ed4864f8c1219a (diff)
downloadcpython-7fda33b56a03330be6cae7d4dfb47045895630f8.zip
cpython-7fda33b56a03330be6cae7d4dfb47045895630f8.tar.gz
cpython-7fda33b56a03330be6cae7d4dfb47045895630f8.tar.bz2
Mereg 3.2.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/structseq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c
index 28cbb19..c3b9a72 100644
--- a/Objects/structseq.c
+++ b/Objects/structseq.c
@@ -383,6 +383,8 @@ PyTypeObject*
PyStructSequence_NewType(PyStructSequence_Desc *desc)
{
PyTypeObject *result = (PyTypeObject*)PyType_GenericAlloc(&PyType_Type, 0);
- PyStructSequence_InitType(result, desc);
+ if (result != NULL) {
+ PyStructSequence_InitType(result, desc);
+ }
return result;
}