shared/path-lookup: remove unnecessary 'if' to help gcc

Fixes #9343.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-06-20 08:17:38 +02:00 committed by Lennart Poettering
parent d149a404b1
commit 3c47d50906
1 changed files with 2 additions and 1 deletions

View File

@ -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");