diff --git a/psycopg/cursor_type.c b/psycopg/cursor_type.c index d6bedfb7..67694ab4 100644 --- a/psycopg/cursor_type.c +++ b/psycopg/cursor_type.c @@ -1015,6 +1015,7 @@ psyco_curs_callproc(cursorObject *self, PyObject *args) PyObject *parameters = Py_None; PyObject *operation = NULL; PyObject *res = NULL; + PyObject *parameter_name = NULL; PyObject *parameter_names = NULL; if (!PyArg_ParseTuple(args, "s#|O", @@ -1046,7 +1047,12 @@ psyco_curs_callproc(cursorObject *self, PyObject *args) /* first we need to figure out how much space we need for the SQL */ sl = procname_len + 17 + nparameters*5 - (nparameters ? 1 : 0); for(i=0; i