summaryrefslogtreecommitdiff
path: root/src/test/test-path.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-08-27 09:58:58 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-08-27 20:20:23 +0200
commitc87d0661a0e26cdca6207f3ccd81013b85824745 (patch)
treeaad870226950cc1fdb1cc4061ec6d959fdf57379 /src/test/test-path.c
parentdf92f4fa8d8f695bf3d65e626386345cc726b264 (diff)
downloadsystemd-c87d0661a0e26cdca6207f3ccd81013b85824745.tar.gz
test-path: remove unnecessary check
test points to an array, so it canont be NULL at this point.
Diffstat (limited to 'src/test/test-path.c')
-rw-r--r--src/test/test-path.c2
1 files changed, 1 insertions, 1 deletions
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;