mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 20:30:04 +01:00
test: Fix test device type validity check
Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
2b63c7c872
commit
dbbc091123
1 changed files with 1 additions and 1 deletions
|
|
@ -418,7 +418,7 @@ litest_create(enum litest_device_type which,
|
|||
dev++;
|
||||
}
|
||||
|
||||
if (!dev)
|
||||
if (!*dev)
|
||||
ck_abort_msg("Invalid device type %d\n", which);
|
||||
|
||||
d = zalloc(sizeof(*d));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue