diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-12-21 22:47:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-12-21 22:47:47 +0100 |
commit | c6661401a7a3a3d70cf5d6de676e5594535381ce (patch) | |
tree | 78df1694e37633d1a3a37044ccb2449413a555f9 /src/creds | |
parent | string-util: rework empty_to_null() to not change "const" qualifier of input (diff) | |
download | systemd-c6661401a7a3a3d70cf5d6de676e5594535381ce.tar.xz systemd-c6661401a7a3a3d70cf5d6de676e5594535381ce.zip |
creds: use empty_or_dash() where appropriate
Diffstat (limited to 'src/creds')
-rw-r--r-- | src/creds/creds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/creds/creds.c b/src/creds/creds.c index d987f04ef4..71bf355b38 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; |