Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dee020a commit db05285Copy full SHA for db05285
1 file changed
Modules/_ctypes/callbacks.c
@@ -165,11 +165,7 @@ static void _CallPythonObject(void *mem,
165
assert(PyTuple_Check(converters));
166
nargs = PyTuple_GET_SIZE(converters);
167
assert(nargs <= CTYPES_MAX_ARGCOUNT);
168
- PyObject **args = NULL;
169
- if (nargs > 0) {
170
- args = alloca(nargs * sizeof(PyObject *));
171
- }
172
-
+ PyObject **args = alloca(nargs * sizeof(PyObject *));
173
PyObject **cnvs = PySequence_Fast_ITEMS(converters);
174
for (i = 0; i < nargs; i++) {
175
PyObject *cnv = cnvs[i]; // borrowed ref
0 commit comments