mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +03:00
Fixed segfault in List function
This function is never called: it segfaults 100%. To be removed.
This commit is contained in:
parent
756c6f1838
commit
0e44198a8f
|
@ -272,10 +272,10 @@ PyTypeObject listType = {
|
||||||
PyObject *
|
PyObject *
|
||||||
psyco_List(PyObject *module, PyObject *args)
|
psyco_List(PyObject *module, PyObject *args)
|
||||||
{
|
{
|
||||||
PyObject *str;
|
PyObject *obj;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "O", &str))
|
if (!PyArg_ParseTuple(args, "O", &obj))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return PyObject_CallFunctionObjArgs((PyObject *)&listType, "O", str, NULL);
|
return PyObject_CallFunctionObjArgs((PyObject *)&listType, obj, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user