mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(main): Use xnmalloc, rather than xmalloc.
This commit is contained in:
1 parent
e93ae52456
commit
89bba9158d
1 file changed
+1
-1
+1
-1
@@ -575,7 +575,7 @@ main (int argc, char **argv)
|
||||
case 1: /* --string */
|
||||
{
|
||||
if (string == NULL)
|
||||
string = xmalloc ((argc - 1) * sizeof (char *));
|
||||
string = xnmalloc (argc - 1, sizeof *string);
|
||||
|
||||
if (optarg == NULL)
|
||||
optarg = "";
|
||||
|
||||
Reference in new issue
Block a user