Skip to content

Commit 5ce595c

Browse files
committed
Don't use self while it's NULL
1 parent b2fddd8 commit 5ce595c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ctypes/cfield.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ PyCField_new_impl(PyTypeObject *type, PyObject *name, PyObject *proto,
9696
}
9797
if (info == NULL) {
9898
PyErr_Format(PyExc_TypeError,
99-
"type of field %R must be a C type", self->name);
99+
"type of field %R must be a C type", name);
100100
goto error;
101101
}
102102
assert(byte_size == info->size);

0 commit comments

Comments
 (0)