[Python-checkins] cpython (merge 3.2 -> default): Mereg 3.2.
stefan.krah
python-checkins at python.org
Sun Aug 19 11:27:54 CEST 2012
http://hg.python.org/cpython/rev/040eb15bbb6e
changeset: 78649:040eb15bbb6e
parent: 78647:d693f961c5ff
parent: 78648:f5e0561e9aa9
user: Stefan Krah <skrah at bytereef.org>
date: Sun Aug 19 11:22:28 2012 +0200
summary:
Mereg 3.2.
files:
Objects/structseq.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Objects/structseq.c b/Objects/structseq.c
--- a/Objects/structseq.c
+++ b/Objects/structseq.c
@@ -383,6 +383,8 @@
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;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list