]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
execute: fix if check
authorLennart Poettering <lennart@poettering.net>
Thu, 16 Jul 2020 06:32:15 +0000 (08:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 16 Jul 2020 06:35:18 +0000 (08:35 +0200)
Fixes: coverity 1430459
src/core/execute.c

index 70b7b8dc3c23bfb6dfa05e37380662f301c24ebe..a67eb716e422729969246f444bff33004bb8b824 100644 (file)
@@ -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");
                 }