summaryrefslogtreecommitdiff
path: root/src/core/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/mount.c')
-rw-r--r--src/core/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index aa81cc6ed7..0c62e8835a 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -1647,7 +1647,8 @@ static int mount_load_proc_self_mountinfo(Manager *m, bool set_flags) {
goto clean_up;
}
- if (asprintf(&o, "%s,%s", options, options2) < 0) {
+ o = join(options, ",", options2, NULL);
+ if (!o) {
r = -ENOMEM;
goto finish;
}