commit | 9b1381fd2fb7179f731709542507015799f90a51 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Wed Jan 03 02:56:00 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Wed Jan 03 02:56:00 2007 +0000 |
tree | 66b3617e0b6ceed9c3123000104df0d78bf9bf2a | |
parent | bb3d0fab3b46d64e93687bc30b405d0878eca296 [diff] [blame] |
convert calloc to xzalloc fix sleep-on-die option
diff --git a/util-linux/fdisk_sgi.c b/util-linux/fdisk_sgi.c index d8acd6b..c83ef24 100644 --- a/util-linux/fdisk_sgi.c +++ b/util-linux/fdisk_sgi.c
@@ -869,7 +869,7 @@ static sgiinfo * fill_sgiinfo(void) { - sgiinfo *info = calloc(1, sizeof(sgiinfo)); + sgiinfo *info = xzalloc(sizeof(sgiinfo)); info->magic = SGI_SSWAP32(SGI_INFO_MAGIC); info->b1 = SGI_SSWAP32(-1);