mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 22:50:05 +01:00
test: quirks: init value to avoid valgrind errors
value isn't touched where the quirk doesn't exist, so we're accessing an uninitialized variable here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3f72d6df2e
commit
d96494e5a7
1 changed files with 4 additions and 4 deletions
|
|
@ -899,7 +899,7 @@ START_TEST(quirks_model_alps)
|
|||
struct litest_device *dev = litest_current_device();
|
||||
struct libinput_device *device = dev->libinput_device;
|
||||
struct quirks *q;
|
||||
bool exists, value;
|
||||
bool exists, value = false;
|
||||
|
||||
q = dev->quirks;
|
||||
exists = quirks_get_bool(q, QUIRK_MODEL_ALPS_TOUCHPAD, &value);
|
||||
|
|
@ -918,7 +918,7 @@ START_TEST(quirks_model_wacom)
|
|||
{
|
||||
struct litest_device *dev = litest_current_device();
|
||||
struct quirks *q;
|
||||
bool exists, value;
|
||||
bool exists, value = false;
|
||||
|
||||
q = dev->quirks;
|
||||
exists = quirks_get_bool(q, QUIRK_MODEL_WACOM_TOUCHPAD, &value);
|
||||
|
|
@ -937,7 +937,7 @@ START_TEST(quirks_model_apple)
|
|||
{
|
||||
struct litest_device *dev = litest_current_device();
|
||||
struct quirks *q;
|
||||
bool exists, value;
|
||||
bool exists, value = false;
|
||||
|
||||
q = dev->quirks;
|
||||
exists = quirks_get_bool(q, QUIRK_MODEL_APPLE_TOUCHPAD, &value);
|
||||
|
|
@ -956,7 +956,7 @@ START_TEST(quirks_model_synaptics_serial)
|
|||
{
|
||||
struct litest_device *dev = litest_current_device();
|
||||
struct quirks *q;
|
||||
bool exists, value;
|
||||
bool exists, value = false;
|
||||
|
||||
q = dev->quirks;
|
||||
exists = quirks_get_bool(q, QUIRK_MODEL_SYNAPTICS_SERIAL_TOUCHPAD, &value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue