diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2014-08-15 02:10:17 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2014-08-15 02:54:25 +0100 |
commit | 1b322a9b19e3edd4274d5802272d8eed62b4caa7 (patch) | |
tree | 64844c4cefe5c7e883ae80628869defc34cae905 /psycopg/adapter_list.c | |
parent | 95165cef7d6157945802ffeb98d51c43fd4033e9 (diff) | |
download | psycopg2-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.c | 6 |
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); } |