]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Use xnmalloc, rather than xmalloc.
authorJim Meyering <jim@meyering.net>
Thu, 6 May 2004 14:24:50 +0000 (14:24 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 6 May 2004 14:24:50 +0000 (14:24 +0000)
src/df.c

index 40af136034014578c8ddd4ff23e82fdaae3b27c8..6e4adc696c29a2aa8b2453cdaffc96e68e94e08b 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -877,7 +877,7 @@ main (int argc, char **argv)
 
       /* stat all the given entries to make sure they get automounted,
         if necessary, before reading the filesystem table.  */
-      stats = xmalloc ((argc - optind) * sizeof *stats);
+      stats = xnmalloc (argc - optind, sizeof *stats);
       for (i = optind; i < argc; ++i)
        {
          if (stat (argv[i], &stats[i - optind]))