]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(new_key): Use xzalloc, not xcalloc.
authorJim Meyering <jim@meyering.net>
Tue, 4 Nov 2003 09:28:28 +0000 (09:28 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 4 Nov 2003 09:28:28 +0000 (09:28 +0000)
src/sort.c

index 735be385437f203f1cdcb4bb846753ae67232d53..459dba998b9f2c5f0b707bc717d39d3a0eaede85 100644 (file)
@@ -2210,7 +2210,7 @@ set_ordering (register const char *s, struct keyfield *key,
 static struct keyfield *
 new_key (void)
 {
-  struct keyfield *key = xcalloc (1, sizeof *key);
+  struct keyfield *key = xzalloc (sizeof *key);
   key->eword = SIZE_MAX;
   return key;
 }