tree-wide: simplify x ? x : y to x ?: y where applicable

This commit is contained in:
Frantisek Sumsal
2023-03-18 14:23:11 +01:00
parent 64254629f7
commit 1da3cb8141
14 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -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));