[BusyBox-cvs] svn commit: trunk/busybox/e2fsprogs/e2p
vapier at busybox.net
vapier at busybox.net
Sat Jun 11 22:25:28 UTC 2005
Author: vapier
Date: 2005-06-11 16:25:27 -0600 (Sat, 11 Jun 2005)
New Revision: 10531
Log:
use xmalloc() instead of malloc()
Modified:
trunk/busybox/e2fsprogs/e2p/feature.c
trunk/busybox/e2fsprogs/e2p/mntopts.c
Changeset:
Modified: trunk/busybox/e2fsprogs/e2p/feature.c
===================================================================
--- trunk/busybox/e2fsprogs/e2p/feature.c 2005-06-11 22:24:15 UTC (rev 10530)
+++ trunk/busybox/e2fsprogs/e2p/feature.c 2005-06-11 22:25:27 UTC (rev 10531)
@@ -154,9 +154,7 @@
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) {
Modified: trunk/busybox/e2fsprogs/e2p/mntopts.c
===================================================================
--- trunk/busybox/e2fsprogs/e2p/mntopts.c 2005-06-11 22:24:15 UTC (rev 10530)
+++ trunk/busybox/e2fsprogs/e2p/mntopts.c 2005-06-11 22:25:27 UTC (rev 10531)
@@ -99,9 +99,7 @@
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) {
More information about the busybox-cvs
mailing list