diff options
author | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2017-11-24 10:31:08 +0100 |
---|---|---|
committer | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2017-11-24 10:31:08 +0100 |
commit | 87e4e28dcfd5d74f82737daca741a3168dfc05d8 (patch) | |
tree | b8a99cb165e6e640da7b0a464895c7a64d938a57 /src/shared/install-printf.c | |
parent | tests: install `test` as part of BASICTOOLS (#7434) (diff) | |
download | systemd-87e4e28dcfd5d74f82737daca741a3168dfc05d8.tar.xz systemd-87e4e28dcfd5d74f82737daca741a3168dfc05d8.zip |
Replace empty ternary with helper method
Diffstat (limited to '')
-rw-r--r-- | src/shared/install-printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/install-printf.c b/src/shared/install-printf.c index 596f7e46b6..f8d0e53eca 100644 --- a/src/shared/install-printf.c +++ b/src/shared/install-printf.c @@ -94,7 +94,7 @@ static int specifier_instance(char specifier, void *data, void *userdata, char * return r; if (isempty(instance)) { - r = free_and_strdup(&instance, i->default_instance ?: ""); + r = free_and_strdup(&instance, strempty(i->default_instance)); if (r < 0) return r; } |