Commit 25078845 authored by Alexandre Vassalotti's avatar Alexandre Vassalotti

Fixed _bsddb key allocation errors.

parent 0c77a82c
......@@ -312,6 +312,10 @@ static Py_buffer * _malloc_view(PyObject *obj)
"Py_buffer malloc failed");
return NULL;
}
if (PyObject_GetBuffer(obj, view, PyBUF_SIMPLE))
return NULL;
if (view->ndim > 1) {
PyErr_SetString(PyExc_BufferError,
"buffers must be single dimension");
......
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