mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-01 02:20:33 +03:00
Fixes an uninitialized value for an optional parameter.
Effectively, this prevented any remote scanners to be discovered.
This commit is contained in:
parent
de210a2e21
commit
9f9ccc1664
|
@ -1202,7 +1202,7 @@ PySane_get_devices(PyObject *self, PyObject *args)
|
||||||
const SANE_Device *dev;
|
const SANE_Device *dev;
|
||||||
SANE_Status st;
|
SANE_Status st;
|
||||||
PyObject *list;
|
PyObject *list;
|
||||||
int local_only, i;
|
int local_only = 0, i;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "|i", &local_only))
|
if (!PyArg_ParseTuple(args, "|i", &local_only))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user