diff options
author | Daniel Martin <consume.noise@gmail.com> | 2017-10-27 16:11:54 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-12-13 10:05:46 -0500 |
commit | e663998fa8bb77bb753abed1e0c12922d4ce1669 (patch) | |
tree | c729f1b588d477fe08aca940fc0982a9ae584526 | |
parent | e8530b872aa4b1648bba7fb3dddaf9abf70100ed (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.c | 2 |
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; |