From 9f9ccc16648b893fa8902553f19c4c1f68e4182f Mon Sep 17 00:00:00 2001 From: Damian Wrobel Date: Fri, 22 Mar 2013 19:51:31 +0100 Subject: [PATCH] Fixes an uninitialized value for an optional parameter. Effectively, this prevented any remote scanners to be discovered. --- Sane/_sane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sane/_sane.c b/Sane/_sane.c index c94a120a0..b424015a8 100644 --- a/Sane/_sane.c +++ b/Sane/_sane.c @@ -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)) {