diff options
Diffstat (limited to 'util-linux/umount.c')
-rw-r--r-- | util-linux/umount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c index 901c9094f..5b22bfacc 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c | |||
@@ -73,9 +73,9 @@ int umount_main(int argc UNUSED_PARAM, char **argv) | |||
73 | } else { | 73 | } else { |
74 | while (getmntent_r(fp, &me, path, PATH_MAX)) { | 74 | while (getmntent_r(fp, &me, path, PATH_MAX)) { |
75 | /* Match fstype if passed */ | 75 | /* Match fstype if passed */ |
76 | if (fstype && match_fstype(&me, fstype)) | 76 | if (!match_fstype(&me, fstype)) |
77 | continue; | 77 | continue; |
78 | m = xmalloc(sizeof(struct mtab_list)); | 78 | m = xzalloc(sizeof(*m)); |
79 | m->next = mtl; | 79 | m->next = mtl; |
80 | m->device = xstrdup(me.mnt_fsname); | 80 | m->device = xstrdup(me.mnt_fsname); |
81 | m->dir = xstrdup(me.mnt_dir); | 81 | m->dir = xstrdup(me.mnt_dir); |