mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(main): Use xnmalloc, rather than xmalloc.
This commit is contained in:
1 parent
94c2794761
commit
782b73c514
1 file changed
+1
-1
@@ -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]))
|
||||
|
||||
Reference in new issue
Block a user