summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-20 08:17:38 +0200
committerLennart Poettering <lennart@poettering.net>2018-06-20 10:57:51 +0200
commit3c47d5090609f60fda71291a42305c5e7ffca5d1 (patch)
tree69e3847b881d22098ef6d283d663edc7f0acfeb5 /src
parentd149a404b134c426a9096f02618eb04506ea976c (diff)
shared/path-lookup: remove unnecessary 'if' to help gcc
Fixes #9343.
Diffstat (limited to 'src')
-rw-r--r--src/shared/path-lookup.c3
1 files changed, 2 insertions, 1 deletions
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");