mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(get_input_fstatus): Use xnmalloc, rather than xmalloc.
This commit is contained in:
1 parent
1956f215e1
commit
4de12cc012
1 file changed
+1
-1
@@ -541,7 +541,7 @@ wc_file (char const *file, struct fstatus *fstatus)
|
||||
static struct fstatus *
|
||||
get_input_fstatus (int nfiles, char * const *file)
|
||||
{
|
||||
struct fstatus *fstatus = xmalloc (nfiles * sizeof *fstatus);
|
||||
struct fstatus *fstatus = xnmalloc (nfiles, sizeof *fstatus);
|
||||
|
||||
if (nfiles == 1
|
||||
&& ((print_lines + print_words + print_chars
|
||||
|
||||
Reference in new issue
Block a user