From: Bartosz Golaszewski Date: Fri, 20 Jul 2018 08:13:59 +0000 (+0200) Subject: bindings: python: fix the default_vals argument in line requests X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=58331f66e72a941bdecdfa949d93bb169bc0fda1;p=qemu-gpiodev%2Flibgpiod.git bindings: python: fix the default_vals argument in line requests We're assigning the wrong local variable in PyArg_ParseTupleAndKeywords() which results in not honoring the default_vals argument. Fix the LineBulk.request() implementation. Fixes: 96c524c4951c ("bindings: implement python bindings") Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/python/gpiodmodule.c b/bindings/python/gpiodmodule.c index 60f39c6..2110a20 100644 --- a/bindings/python/gpiodmodule.c +++ b/bindings/python/gpiodmodule.c @@ -901,7 +901,7 @@ static PyObject *gpiod_LineBulk_request(gpiod_LineBulkObject *self, rv = PyArg_ParseTupleAndKeywords(args, kwds, "s|iiO", kwlist, &consumer, &type, - &flags, &default_vals); + &flags, &def_vals_obj); if (!rv) return NULL;