diff --git a/test/litest.c b/test/litest.c index 47a7776a..7d064d7e 100644 --- a/test/litest.c +++ b/test/litest.c @@ -802,6 +802,7 @@ litest_wait_for_event_of_type(struct libinput *li, ...) assert(type > 0); assert(ntypes < ARRAY_LENGTH(types)); types[ntypes++] = type; + type = va_arg(args, int); } va_end(args);