From c87d0661a0e26cdca6207f3ccd81013b85824745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 27 Aug 2020 09:58:58 +0200 Subject: [PATCH] test-path: remove unnecessary check test points to an array, so it canont be NULL at this point. --- src/test/test-path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test-path.c b/src/test/test-path.c index 1075f31bc6..cf89d89482 100644 --- a/src/test/test-path.c +++ b/src/test/test-path.c @@ -350,7 +350,7 @@ int main(int argc, char *argv[]) { assert_se(set_unit_path(test_path) >= 0); assert_se(runtime_dir = setup_fake_runtime_dir()); - for (const test_function_t *test = tests; test && *test; test++) { + for (const test_function_t *test = tests; *test; test++) { Manager *m = NULL; int r;