summaryrefslogtreecommitdiff
path: root/e2fsprogs/e2p/mntopts.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/e2p/mntopts.c')
-rw-r--r--e2fsprogs/e2p/mntopts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/e2fsprogs/e2p/mntopts.c b/e2fsprogs/e2p/mntopts.c
index 6d0eca0..735260c 100644
--- a/e2fsprogs/e2p/mntopts.c
+++ b/e2fsprogs/e2p/mntopts.c
@@ -99,9 +99,7 @@ int e2p_edit_mntopts(const char *str, __u32 *mntopts, __u32 ok)
int neg;
unsigned int mask;
- buf = malloc(strlen(str)+1);
- if (!buf)
- return 1;
+ buf = xmalloc(strlen(str)+1);
strcpy(buf, str);
cp = buf;
while (cp && *cp) {