summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Martin <consume.noise@gmail.com>2017-10-27 16:11:54 +0200
committerAdam Jackson <ajax@redhat.com>2017-12-13 10:05:46 -0500
commite663998fa8bb77bb753abed1e0c12922d4ce1669 (patch)
treec729f1b588d477fe08aca940fc0982a9ae584526
parente8530b872aa4b1648bba7fb3dddaf9abf70100ed (diff)
test: input: Fix used uninitialized warning in dix_event_to_core
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@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (cherry picked from commit 0bcc65f2bf479c6a74ac70bb5b5181d6834dded6)
-rw-r--r--test/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/input.c b/test/input.c
index 91ee43c46..92dd8910c 100644
--- a/test/input.c
+++ b/test/input.c
@@ -228,7 +228,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;