diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-06-11 22:37:25 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-06-11 22:37:25 +0000 |
commit | b58a542e4abbc04eddcd62bef70a1a81fa8e6ce6 (patch) | |
tree | ec0c844948d2fd786039f5ba39427a82e004506d /e2fsprogs/blkid/dev.c | |
parent | 0d044d1cb28fd0d7f8f1c99222fef2ba49c85ee0 (diff) | |
download | busybox-w32-b58a542e4abbc04eddcd62bef70a1a81fa8e6ce6.tar.gz busybox-w32-b58a542e4abbc04eddcd62bef70a1a81fa8e6ce6.tar.bz2 busybox-w32-b58a542e4abbc04eddcd62bef70a1a81fa8e6ce6.zip |
use malloc instead of xmalloc
git-svn-id: svn://busybox.net/trunk/busybox@10532 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'e2fsprogs/blkid/dev.c')
-rw-r--r-- | e2fsprogs/blkid/dev.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/e2fsprogs/blkid/dev.c b/e2fsprogs/blkid/dev.c index 23af8878d..0e2b4e1bc 100644 --- a/e2fsprogs/blkid/dev.c +++ b/e2fsprogs/blkid/dev.c | |||
@@ -84,12 +84,10 @@ extern blkid_dev_iterate blkid_dev_iterate_begin(blkid_cache cache) | |||
84 | { | 84 | { |
85 | blkid_dev_iterate iter; | 85 | blkid_dev_iterate iter; |
86 | 86 | ||
87 | iter = malloc(sizeof(struct blkid_struct_dev_iterate)); | 87 | iter = xmalloc(sizeof(struct blkid_struct_dev_iterate)); |
88 | if (iter) { | 88 | iter->magic = DEV_ITERATE_MAGIC; |
89 | iter->magic = DEV_ITERATE_MAGIC; | 89 | iter->cache = cache; |
90 | iter->cache = cache; | 90 | iter->p = cache->bic_devs.next; |
91 | iter->p = cache->bic_devs.next; | ||
92 | } | ||
93 | return (iter); | 91 | return (iter); |
94 | } | 92 | } |
95 | 93 | ||