mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-02 05:38:10 +02:00
timer: fix a logic error checking the list node
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f00e388686
commit
7ad976984e
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ libinput_timer_init(struct libinput_timer *timer,
|
|||
void
|
||||
libinput_timer_destroy(struct libinput_timer *timer)
|
||||
{
|
||||
if (timer->link.prev != NULL && timer->link.prev != NULL &&
|
||||
if (timer->link.prev != NULL && timer->link.next != NULL &&
|
||||
!list_empty(&timer->link)) {
|
||||
log_bug_libinput(timer->libinput,
|
||||
"timer: %s has not been cancelled\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue