wipefs: use xalloc lib

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
This commit is contained in:
Davidlohr Bueso 2011-12-14 18:56:57 +01:00 committed by Karel Zak
parent 5b9df0280a
commit a2f5c22173
1 changed files with 1 additions and 4 deletions

View File

@ -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;