mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
mount-util: add one more assertion
This commit is contained in:
@@ -564,6 +564,8 @@ static int mount_flags_to_string(long unsigned flags, char **ret) {
|
||||
};
|
||||
_cleanup_free_ char *str = NULL;
|
||||
|
||||
assert(ret);
|
||||
|
||||
for (size_t i = 0; i < ELEMENTSOF(map); i++)
|
||||
if (flags & map[i].flag) {
|
||||
if (!strextend_with_separator(&str, "|", map[i].name))
|
||||
|
||||
Reference in New Issue
Block a user