summaryrefslogtreecommitdiff
path: root/psycopg/adapter_list.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2014-08-15 02:10:17 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2014-08-15 02:54:25 +0100
commit1b322a9b19e3edd4274d5802272d8eed62b4caa7 (patch)
tree64844c4cefe5c7e883ae80628869defc34cae905 /psycopg/adapter_list.c
parent95165cef7d6157945802ffeb98d51c43fd4033e9 (diff)
downloadpsycopg2-1b322a9b19e3edd4274d5802272d8eed62b4caa7.tar.gz
Fixed segfault in List function
This function is never called: it segfaults 100%. To be removed.
Diffstat (limited to 'psycopg/adapter_list.c')
-rw-r--r--psycopg/adapter_list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/psycopg/adapter_list.c b/psycopg/adapter_list.c
index ed26b68..6335f64 100644
--- a/psycopg/adapter_list.c
+++ b/psycopg/adapter_list.c
@@ -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);
}