The call to PyArg_ParseTuple in al_Connect had one too few arguments.
authorGuido van Rossum <guido@python.org>
Fri, 10 Dec 1999 15:12:11 +0000 (15:12 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Dec 1999 15:12:11 +0000 (15:12 +0000)
This fixes PR#157.

Modules/almodule.c

index ffd5a5632fc43da94d7e55b55f1a6bb8b276ba1d..7fcfae610c81f541859abf210bea0dae8f4f33b8 100644 (file)
@@ -1545,7 +1545,7 @@ al_Connect(self, args)
        ALparamInfo *propinfo = NULL;
        PyObject *propobj = NULL;
 
-       if (!PyArg_ParseTuple(args, "ii|O!", &source, &dest, &propobj))
+       if (!PyArg_ParseTuple(args, "ii|O!", &source, &dest, &PyList_Type, &propobj))
                return NULL;
        if (propobj != NULL) {
                nprops = python2params(source, dest, propobj, &props, &propinfo);