From: Lennart Poettering Date: Thu, 16 Jul 2020 06:32:15 +0000 (+0200) Subject: execute: fix if check X-Git-Tag: v246-rc2~57^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f63ef9370342d4293a00a1ae9f80d0756c67c792;p=thirdparty%2Fsystemd.git execute: fix if check Fixes: coverity 1430459 --- diff --git a/src/core/execute.c b/src/core/execute.c index 70b7b8dc3c2..a67eb716e42 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"); }