Fixed segfault in List function

This function is never called: it segfaults 100%. To be removed.
This commit is contained in:
Daniele Varrazzo 2014-08-15 02:10:17 +01:00
parent 756c6f1838
commit 0e44198a8f

View File

@ -272,10 +272,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);
}