From 25feb1be0c89f14d4cbca09e5e44b50ac1ebb8ed Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Thu, 3 Aug 2017 18:50:05 +0900 Subject: [PATCH] genesys: Fix use of uninitialized variable See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869673 --- backend/genesys.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/genesys.c b/backend/genesys.c index 9c38c2f54..7598c2d92 100644 --- a/backend/genesys.c +++ b/backend/genesys.c @@ -6026,6 +6026,7 @@ attach (SANE_String_Const devname, Genesys_Device ** devp, SANE_Bool may_wait) dev->model = genesys_usb_device_list[i].model; dev->vendorId = genesys_usb_device_list[i].vendor; dev->productId = genesys_usb_device_list[i].product; + dev->usb_mode = 0; /* i.e. unset */ dev->already_initialized = SANE_FALSE; DBG(DBG_info, "%s: found %s flatbed scanner %s at %s\n", __func__, dev->model->vendor,