summaryrefslogtreecommitdiff
path: root/src/shared/mount-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-03-25 16:57:55 +0100
committerLennart Poettering <lennart@poettering.net>2019-03-25 19:33:55 +0100
commitf0a95a2c6d64436611bca31de1f7662a4066695c (patch)
tree53673014aa0a2938635f6f68d8ee8d66abf207c1 /src/shared/mount-util.c
parentf8b1904f9611a7c7518ab31a06a6b7961ca97c6a (diff)
downloadsystemd-f0a95a2c6d64436611bca31de1f7662a4066695c.tar.gz
mount-util: use set_put_strdup() where appropriate
Diffstat (limited to 'src/shared/mount-util.c')
-rw-r--r--src/shared/mount-util.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/shared/mount-util.c b/src/shared/mount-util.c
index 8af90a5e31..72cf6c41b6 100644
--- a/src/shared/mount-util.c
+++ b/src/shared/mount-util.c
@@ -250,11 +250,7 @@ int bind_remount_recursive_with_mountinfo(const char *prefix, bool ro, char **bl
log_debug("Made top-level directory %s a mount point.", prefix);
- x = strdup(cleaned);
- if (!x)
- return -ENOMEM;
-
- r = set_consume(done, x);
+ r = set_put_strdup(done, cleaned);
if (r < 0)
return r;
}