mount: do not output (null) in option

Fixes #9327.
This commit is contained in:
Yu Watanabe 2018-06-19 11:00:56 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 3fe910794b
commit 980982da62
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ static int transient_mount_set_properties(sd_bus_message *m) {
r = asprintf(&options,
"uid=" UID_FMT ",gid=" GID_FMT "%s%s",
arg_uid, arg_gid,
arg_mount_options ? "," : "", arg_mount_options);
arg_mount_options ? "," : "", strempty(arg_mount_options));
if (r < 0)
return -ENOMEM;
}