[PATCH libinput 6/9] test: Fix test device type validity check

Jonas Ådahl jadahl at gmail.com
Wed Apr 9 12:02:13 PDT 2014


Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
---
 test/litest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/litest.c b/test/litest.c
index 495871c..f329312 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -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));
-- 
1.8.3.2



More information about the wayland-devel mailing list