ykushcmd/0004-ykushcmd-initialize-a-variable-before-use.patch
2018-01-16 18:06:44 +01:00

24 lines
761 B
Diff

From c9bdaf157b7303897bd1181a078d7b4277dc2bf5 Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <lkundrak@v3.sk>
Date: Tue, 16 Jan 2018 12:44:19 +0100
Subject: [PATCH 4/4] ykushcmd: initialize a variable before use
---
ykushcmd/usbcom.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/ykushcmd/usbcom.cpp b/ykushcmd/usbcom.cpp
index 63474d0..b6c2e48 100755
--- a/ykushcmd/usbcom.cpp
+++ b/ykushcmd/usbcom.cpp
@@ -99,6 +99,7 @@ int listDevices() {
//APAGAR
// Limited Legaccy firmware support (does not work in all systems)
//handle = hid_open(VENDOR_ID, OLD_PRODUCT_ID, NULL);
+ handle = NULL;
//FIM APAGAR
if (handle == NULL){
// No HID devices found
--
2.14.3