From 0e44198a8f03d6c5f730638a8e6495a05c34aa5e Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Fri, 15 Aug 2014 02:10:17 +0100 Subject: [PATCH] Fixed segfault in List function This function is never called: it segfaults 100%. To be removed. --- psycopg/adapter_list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/psycopg/adapter_list.c b/psycopg/adapter_list.c index 1198a81b..b718a006 100644 --- a/psycopg/adapter_list.c +++ b/psycopg/adapter_list.c @@ -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); }