summaryrefslogtreecommitdiffstats
path: root/src/veritysetup
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2021-03-18 11:59:31 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2021-03-18 11:59:31 +0100
commit57ac6959f53762cf8e1d28289f443ad3572b1e31 (patch)
tree9cbb3961fb6a24294ab804f1d31c4f2cc0ed8523 /src/veritysetup
parentMerge pull request #19011 from anitazha/pgscanrate (diff)
downloadsystemd-57ac6959f53762cf8e1d28289f443ad3572b1e31.tar.xz
systemd-57ac6959f53762cf8e1d28289f443ad3572b1e31.zip
tree-wide: coccinelle fixes
Another batch of fixes (mostly) generated by Coccinelle.
Diffstat (limited to 'src/veritysetup')
-rw-r--r--src/veritysetup/veritysetup-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/veritysetup/veritysetup-generator.c b/src/veritysetup/veritysetup-generator.c
index d16d7edebd..fd95e6f304 100644
--- a/src/veritysetup/veritysetup-generator.c
+++ b/src/veritysetup/veritysetup-generator.c
@@ -86,7 +86,7 @@ static int create_device(void) {
if (r < 0)
return log_error_errno(r, "Failed to generate unit name: %m");
- options_escaped = specifier_escape(arg_options ?: "");
+ options_escaped = specifier_escape(strempty(arg_options));
if (!options_escaped)
return log_oom();