mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-17 01:20:32 +03:00
Fixed segfault in List function
This function is never called: it segfaults 100%. To be removed.
This commit is contained in:
parent
95165cef7d
commit
1b322a9b19
|
@ -267,10 +267,10 @@ PyTypeObject listType = {
|
|||
PyObject *
|
||||
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 PyObject_CallFunctionObjArgs((PyObject *)&listType, "O", str, NULL);
|
||||
return PyObject_CallFunctionObjArgs((PyObject *)&listType, obj, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user