diff options
author | Mike Frysinger | 2005-06-11 22:37:25 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-06-11 22:37:25 +0000 |
commit | 7fde8debc450c19927b82e3434fc5d6a6dd4d35d (patch) | |
tree | ec0c844948d2fd786039f5ba39427a82e004506d /e2fsprogs/blkid/dev.c | |
parent | d1a9d57bd6d9e40fb25564f10b0bd85f0a2c1e3a (diff) | |
download | busybox-7fde8debc450c19927b82e3434fc5d6a6dd4d35d.zip busybox-7fde8debc450c19927b82e3434fc5d6a6dd4d35d.tar.gz |
use malloc instead of xmalloc
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 23af887..0e2b4e1 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) { blkid_dev_iterate iter; - iter = malloc(sizeof(struct blkid_struct_dev_iterate)); - if (iter) { - iter->magic = DEV_ITERATE_MAGIC; - iter->cache = cache; - iter->p = cache->bic_devs.next; - } + iter = xmalloc(sizeof(struct blkid_struct_dev_iterate)); + iter->magic = DEV_ITERATE_MAGIC; + iter->cache = cache; + iter->p = cache->bic_devs.next; return (iter); } |