summaryrefslogtreecommitdiff
path: root/e2fsprogs/e2p/feature.c
diff options
context:
space:
mode:
authorMike Frysinger2005-06-11 22:25:27 +0000
committerMike Frysinger2005-06-11 22:25:27 +0000
commitd1a9d57bd6d9e40fb25564f10b0bd85f0a2c1e3a (patch)
treec0ec65f798747749494ca08700b58323b6109025 /e2fsprogs/e2p/feature.c
parent2401ce5343f5e553ff06fc2e621a316ee485dd39 (diff)
downloadbusybox-d1a9d57bd6d9e40fb25564f10b0bd85f0a2c1e3a.zip
busybox-d1a9d57bd6d9e40fb25564f10b0bd85f0a2c1e3a.tar.gz
use xmalloc() instead of malloc()
Diffstat (limited to 'e2fsprogs/e2p/feature.c')
-rw-r--r--e2fsprogs/e2p/feature.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/e2fsprogs/e2p/feature.c b/e2fsprogs/e2p/feature.c
index f4e920a..a4f3c64 100644
--- a/e2fsprogs/e2p/feature.c
+++ b/e2fsprogs/e2p/feature.c
@@ -154,9 +154,7 @@ int e2p_edit_feature(const char *str, __u32 *compat_array, __u32 *ok_array)
unsigned int mask;
int compat_type;
- buf = malloc(strlen(str)+1);
- if (!buf)
- return 1;
+ buf = xmalloc(strlen(str)+1);
strcpy(buf, str);
cp = buf;
while (cp && *cp) {