From 3c47d5090609f60fda71291a42305c5e7ffca5d1 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Wed, 20 Jun 2018 08:17:38 +0200 Subject: shared/path-lookup: remove unnecessary 'if' to help gcc Fixes #9343. --- src/shared/path-lookup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/path-lookup.c b/src/shared/path-lookup.c index 13ab5310e3..42a5b62d5d 100644 --- a/src/shared/path-lookup.c +++ b/src/shared/path-lookup.c @@ -260,7 +260,8 @@ static int acquire_generator_dirs( prefix = tempdir; else if (scope == UNIT_FILE_SYSTEM) prefix = "/run/systemd"; - else if (scope == UNIT_FILE_USER) { + else { + /* UNIT_FILE_USER */ const char *e; e = getenv("XDG_RUNTIME_DIR"); -- cgit v1.2.3