summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-03-18 13:58:27 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-03-18 14:23:11 +0100
commit1da3cb81411e7c3d698fe20f95cc1c8145f2941c (patch)
tree520f0df7135e25623ec9c28830333aaa062c3442 /src/nspawn
parent64254629f7e062a39156ee95428d46f2a1e82e06 (diff)
downloadsystemd-1da3cb81411e7c3d698fe20f95cc1c8145f2941c.tar.gz
tree-wide: simplify x ? x : y to x ?: y where applicable
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 13d744870d..7122902aa0 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -3483,7 +3483,7 @@ static int inner_child(
if (arg_user || !uid_is_valid(arg_uid) || arg_uid == 0)
if (asprintf(envp + n_env++, "USER=%s", arg_user ?: "root") < 0 ||
- asprintf(envp + n_env++, "LOGNAME=%s", arg_user ? arg_user : "root") < 0)
+ asprintf(envp + n_env++, "LOGNAME=%s", arg_user ?: "root") < 0)
return log_oom();
assert(!sd_id128_is_null(arg_uuid));