From dbbc09112383a1dac6b39d9d9e9099c8898d5ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 25 Mar 2014 22:56:01 +0100 Subject: [PATCH] test: Fix test device type validity check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonas Ã…dahl Reviewed-by: Peter Hutterer --- test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index af7fd39f..8eebf6eb 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));