diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-07-16 08:32:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-07-16 08:35:18 +0200 |
commit | f63ef9370342d4293a00a1ae9f80d0756c67c792 (patch) | |
tree | 7a8aad43bd554d0e88297ad3b26cd19e54241daf /src/core/execute.c | |
parent | dhcp4: only renewing lease when the client already has a lease (diff) | |
download | systemd-f63ef9370342d4293a00a1ae9f80d0756c67c792.tar.xz systemd-f63ef9370342d4293a00a1ae9f80d0756c67c792.zip |
execute: fix if check
Fixes: coverity 1430459
Diffstat (limited to '')
-rw-r--r-- | src/core/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 70b7b8dc3c..a67eb716e4 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2630,7 +2630,7 @@ static int apply_mount_namespace( if (streq_ptr(runtime->var_tmp_dir, RUN_SYSTEMD_EMPTY)) var_tmp_dir = runtime->var_tmp_dir; - else if (runtime->tmp_dir) + else if (runtime->var_tmp_dir) var_tmp_dir = strjoina(runtime->var_tmp_dir, "/tmp"); } |