From 589850e8df35c6b4b54db074d091b4e1597550be Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 7 Apr 2025 10:36:48 +1000 Subject: [PATCH] test: correct the libevdev initialization in two tests These are used to create a new struct libevdev so let's not wrongly initialize them to an existing struct. Part-of: --- test/test-switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-switch.c b/test/test-switch.c index 79b93a55..d2a3e00b 100644 --- a/test/test-switch.c +++ b/test/test-switch.c @@ -765,7 +765,7 @@ START_TEST(lid_update_hw_on_key_closed_on_init) struct litest_device *sw = litest_current_device(); struct libinput *li; struct litest_device *keyboard; - struct libevdev *evdev = sw->evdev; + struct libevdev *evdev; struct input_event event; int fd; int rc;