From a2f5c22173f6af9a181646a90f5f5f009450661c Mon Sep 17 00:00:00 2001 From: Davidlohr Bueso Date: Wed, 14 Dec 2011 18:56:57 +0100 Subject: [PATCH] wipefs: use xalloc lib Signed-off-by: Davidlohr Bueso --- misc-utils/wipefs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/misc-utils/wipefs.c b/misc-utils/wipefs.c index f79fa3c6e..92f410164 100644 --- a/misc-utils/wipefs.c +++ b/misc-utils/wipefs.c @@ -132,10 +132,7 @@ add_offset(struct wipe_desc *wp0, loff_t offset, int zap) wp = wp->next; } - wp = calloc(1, sizeof(struct wipe_desc)); - if (!wp) - err(EXIT_FAILURE, _("calloc failed")); - + wp = xcalloc(1, sizeof(struct wipe_desc)); wp->offset = offset; wp->next = wp0; wp->zap = zap;