[PATCH xserver 2/4] test: input: Fix used uninitialized warning in dix_event_to_core
Daniel Martin
consume.noise at gmail.com
Fri Oct 27 14:11:54 UTC 2017
input.c: In function ‘dix_event_to_core’:
../include/inputstr.h:61:55: warning: ‘*((void *)&ev+80)’ is used uninitialized in this function [-Wuninitialized]
#define SetBit(ptr, bit) (((BYTE *) (ptr))[(bit)>>3] |= (1 << ((bit) & 7)))
^~
Signed-off-by: Daniel Martin <consume.noise at gmail.com>
---
test/input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/input.c b/test/input.c
index 4cd39bb48..8638f1443 100644
--- a/test/input.c
+++ b/test/input.c
@@ -230,7 +230,7 @@ dix_check_grab_values(void)
static void
dix_event_to_core(int type)
{
- DeviceEvent ev;
+ DeviceEvent ev = {};
xEvent *core;
int time;
int x, y;
--
2.13.6
More information about the xorg-devel
mailing list