diff options
Diffstat (limited to 'umount.c')
-rw-r--r-- | umount.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -89,8 +89,7 @@ void mtab_read(void) | |||
89 | return; | 89 | return; |
90 | } | 90 | } |
91 | while ((e = getmntent(fp))) { | 91 | while ((e = getmntent(fp))) { |
92 | entry = malloc(sizeof(struct _mtab_entry_t)); | 92 | entry = xmalloc(sizeof(struct _mtab_entry_t)); |
93 | |||
94 | entry->device = strdup(e->mnt_fsname); | 93 | entry->device = strdup(e->mnt_fsname); |
95 | entry->mountpt = strdup(e->mnt_dir); | 94 | entry->mountpt = strdup(e->mnt_dir); |
96 | entry->next = mtab_cache; | 95 | entry->next = mtab_cache; |