Fixes an uninitialized value for an optional parameter.

Effectively, this prevented any remote scanners to be discovered.
This commit is contained in:
Damian Wrobel 2013-03-22 19:51:31 +01:00
parent de210a2e21
commit 9f9ccc1664

View File

@ -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))
{