diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-03-18 13:58:27 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-03-18 14:23:11 +0100 |
commit | 1da3cb81411e7c3d698fe20f95cc1c8145f2941c (patch) | |
tree | 520f0df7135e25623ec9c28830333aaa062c3442 /src/coredump | |
parent | 64254629f7e062a39156ee95428d46f2a1e82e06 (diff) | |
download | systemd-1da3cb81411e7c3d698fe20f95cc1c8145f2941c.tar.gz |
tree-wide: simplify x ? x : y to x ?: y where applicable
Diffstat (limited to 'src/coredump')
-rw-r--r-- | src/coredump/coredump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index e715fd232b..266471a9c8 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -246,7 +246,7 @@ static int fix_xattr(int fd, const Context *context) { #define filename_escape(s) xescape((s), "./ ") static const char *coredump_tmpfile_name(const char *s) { - return s ? s : "(unnamed temporary file)"; + return s ?: "(unnamed temporary file)"; } static int fix_permissions( |