Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions bind-mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ parse_mountinfo (int proc_fd,
cleanup_free MountInfoLine *lines = NULL;
cleanup_free MountInfoLine **by_id = NULL;
cleanup_mount_tab MountTab mount_tab = NULL;
MountInfo *end_tab;
int n_mounts;
char *line;
unsigned int i;
Expand Down Expand Up @@ -368,8 +367,7 @@ parse_mountinfo (int proc_fd,
n_mounts = count_mounts (&lines[root]);
mount_tab = xcalloc (n_mounts + 1, sizeof (MountInfo));

end_tab = collect_mounts (&mount_tab[0], &lines[root]);
assert (end_tab == &mount_tab[n_mounts]);
assert (collect_mounts (&mount_tab[0], &lines[root]) == &mount_tab[n_mounts]);

return steal_pointer (&mount_tab);
}
Expand Down