diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-03 05:56:00 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-03 05:56:00 +0300 |
commit | 9b1381fd2fb7179f731709542507015799f90a51 (patch) | |
tree | 66b3617e0b6ceed9c3123000104df0d78bf9bf2a /util-linux/fdisk_sgi.c | |
parent | bb3d0fab3b46d64e93687bc30b405d0878eca296 (diff) |
convert calloc to xzalloc
fix sleep-on-die option
Diffstat (limited to 'util-linux/fdisk_sgi.c')
-rw-r--r-- | util-linux/fdisk_sgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/fdisk_sgi.c b/util-linux/fdisk_sgi.c index d8acd6bc7..c83ef2420 100644 --- a/util-linux/fdisk_sgi.c +++ b/util-linux/fdisk_sgi.c @@ -869,7 +869,7 @@ sgi_set_xcyl(void) 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); |