Skip to content

Commit fc67291

Browse files
Aniketsyvstinner
andauthored
Update Objects/funcobject.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 623d522 commit fc67291

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/funcobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,8 +1646,9 @@ static PyObject *
16461646
cm_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
16471647
{
16481648
classmethod *cm = (classmethod *)PyType_GenericAlloc(type, 0);
1649-
if (cm == NULL)
1649+
if (cm == NULL) {
16501650
return NULL;
1651+
}
16511652
cm->cm_callable = Py_None;
16521653
cm->cm_dict = NULL;
16531654
return (PyObject *)cm;

0 commit comments

Comments
 (0)