Merge pull request #155 from dwrobel/master

Fixes an uninitialized value for an optional parameter.
This commit is contained in:
Alex Clark ☺ 2013-03-22 12:09:11 -07:00
commit 5aeb7b584b

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