Commit 19c04084 authored by scoder's avatar scoder

Merge pull request #183 from jrray/master

Fix runtime crash as described on cython-devel.
parents 9b003173 f1b2b636
...@@ -554,7 +554,7 @@ static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t ...@@ -554,7 +554,7 @@ static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t
m->defaults = PyMem_Malloc(size); m->defaults = PyMem_Malloc(size);
if (!m->defaults) if (!m->defaults)
return PyErr_NoMemory(); return PyErr_NoMemory();
memset(m->defaults, 0, sizeof(size)); memset(m->defaults, 0, size);
m->defaults_pyobjects = pyobjects; m->defaults_pyobjects = pyobjects;
return m->defaults; return m->defaults;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment