artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1684d4b
)
Make sure `row' is not used uninitialized in wsmouse_matching().
author
miod
<miod@openbsd.org>
Fri, 17 May 2024 20:11:58 +0000
(20:11 +0000)
committer
miod
<miod@openbsd.org>
Fri, 17 May 2024 20:11:58 +0000
(20:11 +0000)
sys/dev/wscons/wsmouse.c
patch
|
blob
|
history
diff --git
a/sys/dev/wscons/wsmouse.c
b/sys/dev/wscons/wsmouse.c
index
785e781
..
e0d6cd2
100644
(file)
--- a/
sys/dev/wscons/wsmouse.c
+++ b/
sys/dev/wscons/wsmouse.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: wsmouse.c,v 1.7
1 2024/03/25 13:01:49 mvs
Exp $ */
+/* $OpenBSD: wsmouse.c,v 1.7
2 2024/05/17 20:11:58 miod
Exp $ */
/* $NetBSD: wsmouse.c,v 1.35 2005/02/27 00:27:52 perry Exp $ */
/*
@@
-1255,6
+1255,7
@@
wsmouse_matching(int *matrix, int m, int n, int *buffer)
for (; p < mc; *p++ = 0) {}
for (col = 0; col < n; col++) {
delta = INT_MAX;
+ row = 0;
for (i = 0, p = matrix + col; i < m; i++, p += n) {
d = *p - red[i];
if (d < delta || (d == delta && r2c[i] < 0)) {