mount-util: use set_put_strdup() where appropriate

This commit is contained in:
Lennart Poettering
2019-03-25 19:33:55 +01:00
parent f8b1904f96
commit f0a95a2c6d
+1 -5
View File
@@ -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;
}