From: Lennart Poettering Date: Wed, 21 Dec 2022 21:47:47 +0000 (+0100) Subject: creds: use empty_or_dash() where appropriate X-Git-Tag: v253-rc1~229^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F25829%2Fhead;p=thirdparty%2Fsystemd.git creds: use empty_or_dash() where appropriate --- diff --git a/src/creds/creds.c b/src/creds/creds.c index d987f04ef43..71bf355b383 100644 --- a/src/creds/creds.c +++ b/src/creds/creds.c @@ -563,7 +563,7 @@ static int verb_decrypt(int argc, char **argv, void *userdata) { if (r < 0) return log_error_errno(r, "Failed to read encrypted credential data: %m"); - output_path = (argc < 3 || isempty(argv[2]) || streq(argv[2], "-")) ? NULL : argv[2]; + output_path = (argc < 3 || empty_or_dash(argv[2])) ? NULL : argv[2]; if (arg_name_any) name = NULL;