creds: use empty_or_dash() where appropriate

This commit is contained in:
Lennart Poettering
2022-12-21 22:47:47 +01:00
parent ef2409cbde
commit c6661401a7
+1 -1
View File
@@ -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;