mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-27 23:10:07 +01:00
test: fix uninitialized variable
Found by coverity Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f5a60d1d82
commit
a6b43386d6
1 changed files with 1 additions and 1 deletions
|
|
@ -442,7 +442,7 @@ START_TEST(bitfield_helpers)
|
|||
* test: 0, 1, 7, 8, 31, 32, and 33
|
||||
*/
|
||||
unsigned char read_bitfield[] = { 0x83, 0x1, 0x0, 0x80, 0x3 };
|
||||
unsigned char write_bitfield[ARRAY_LENGTH(read_bitfield)];
|
||||
unsigned char write_bitfield[ARRAY_LENGTH(read_bitfield)] = {0};
|
||||
size_t i;
|
||||
|
||||
/* Now check that the bitfield we wrote to came out to be the same as
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue