mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 15:31:06 +08:00
* argv.c (expandargv): Do not use xmalloc_failed.
From-SVN: r104695
This commit is contained in:
parent
f660281695
commit
affbb54ac4
@ -1,3 +1,7 @@
|
||||
2005-09-27 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* argv.c (expandargv): Do not use xmalloc_failed.
|
||||
|
||||
2005-09-26 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* argv.c (safe-ctype.h): Include it.
|
||||
|
@ -365,9 +365,10 @@ expandargv (argcp, argvp)
|
||||
{
|
||||
*argvp = dupargv (*argvp);
|
||||
if (!*argvp)
|
||||
/* We do not know exactly many bytes dupargv tried to
|
||||
allocate, so make a guess. */
|
||||
xmalloc_failed (*argcp * 32);
|
||||
{
|
||||
fputs ("\nout of memory\n", stderr);
|
||||
xexit (1);
|
||||
}
|
||||
}
|
||||
/* Count the number of arguments. */
|
||||
file_argc = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user