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));