Skip to content

Commit bb967ab

Browse files
Make the dummy pointer const to satisfy the c-globals check
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 09270e1 commit bb967ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_testcapi/capsule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ capsule_new(PyObject *self, PyObject *arg)
2222
return PyErr_NoMemory();
2323
}
2424
}
25-
static char dummy;
25+
static const char dummy = 0;
2626
void *pointer = name_copy != NULL ? (void *)name_copy : (void *)&dummy;
2727
PyObject *capsule = PyCapsule_New(pointer, name_copy, capsule_destructor);
2828
if (capsule == NULL) {

0 commit comments

Comments
 (0)