Skip to contentSkip to conversation

wipefs: use xalloc lib

PATCH Applied Davidlohr Bueso 2 participants 2 messages Dec 14, 2011 – Dec 16, 2011 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wipefs: use xalloc lib

From: Davidlohr Bueso <[email protected]>
Date: Wed, 14 Dec 2011 18:56:57 +0100

---
 misc-utils/wipefs.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
misc-utils/wipefs.c +1 -4
index f79fa3c..92f4101 100644
@@ -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;
Signature · 1 line
1.7.7.3
maintainer Applied
#1 lore raw
Quoted 2 lines · Davidlohr Bueso
 misc-utils/wipefs.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com