diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-06-20 08:17:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-20 10:57:51 +0200 |
commit | 3c47d5090609f60fda71291a42305c5e7ffca5d1 (patch) | |
tree | 69e3847b881d22098ef6d283d663edc7f0acfeb5 | |
parent | resolve: fix log message (diff) | |
download | systemd-3c47d5090609f60fda71291a42305c5e7ffca5d1.tar.xz systemd-3c47d5090609f60fda71291a42305c5e7ffca5d1.zip |
shared/path-lookup: remove unnecessary 'if' to help gcc
Fixes #9343.
-rw-r--r-- | src/shared/path-lookup.c | 3 |
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"); |