lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240814030243.2138-1-bajing@cmss.chinamobile.com>
Date: Wed, 14 Aug 2024 11:02:43 +0800
From: bajing <bajing@...s.chinamobile.com>
To: w.d.hubbs@...il.com
Cc: chris@...-brannons.com,
	kirk@...sers.ca,
	samuel.thibault@...-lyon.org,
	nicolas@...sle.eu,
	masahiroy@...nel.org,
	speakup@...ux-speakup.org,
	linux-kernel@...r.kernel.org,
	bajing <bajing@...s.chinamobile.com>
Subject: [PATCH] speakup: genmap: initialization the variable

The variable lc is not initialized before use, so the initialization operation on it is added.

Signed-off-by: bajing <bajing@...s.chinamobile.com>
---
 drivers/accessibility/speakup/genmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/accessibility/speakup/genmap.c b/drivers/accessibility/speakup/genmap.c
index 0882bab10fb8..a1ea0ce45c20 100644
--- a/drivers/accessibility/speakup/genmap.c
+++ b/drivers/accessibility/speakup/genmap.c
@@ -48,7 +48,7 @@ static int get_shift_value(int state)
 int
 main(int argc, char *argv[])
 {
-	int value, shift_state, i, spk_val = 0, lock_val = 0;
+	int value, shift_state, i, lc, spk_val = 0, lock_val = 0;
 	int max_key_used = 0, num_keys_used = 0;
 	struct st_key *this;
 	struct st_key_init *p_init;
-- 
2.33.0




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ