mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +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;
|
||||
SANE_Status st;
|
||||
PyObject *list;
|
||||
int local_only, i;
|
||||
int local_only = 0, i;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "|i", &local_only))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user