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.
2 parents 755df2a + e33797b commit 2561726Copy full SHA for 2561726
1 file changed
Modules/_ctypes/callbacks.c
@@ -305,19 +305,21 @@ static void closure_fcn(ffi_cif *cif,
305
static CThunkObject* CThunkObject_new(Py_ssize_t nArgs)
306
{
307
CThunkObject *p;
308
- int i;
+ Py_ssize_t i;
309
310
p = PyObject_GC_NewVar(CThunkObject, &PyCThunk_Type, nArgs);
311
if (p == NULL) {
312
PyErr_NoMemory();
313
return NULL;
314
}
315
316
- p->pcl_exec = NULL;
317
p->pcl_write = NULL;
+ p->pcl_exec = NULL;
318
memset(&p->cif, 0, sizeof(p->cif));
319
+ p->flags = 0;
320
p->converters = NULL;
321
p->callable = NULL;
322
+ p->restype = NULL;
323
p->setfunc = NULL;
324
p->ffi_restype = NULL;
325
0 commit comments