(main): Use new loop var J to avoid conflict with I.

From-SVN: r2043
This commit is contained in:
Richard Stallman 1992-09-03 07:15:21 +00:00
parent 9233f8ce48
commit 058d85217a
1 changed files with 10 additions and 7 deletions

View File

@ -3197,6 +3197,7 @@ main (argc, argv)
char **argv;
{
register int i;
int j;
int value;
int error_count = 0;
int linker_was_run = 0;
@ -3371,17 +3372,19 @@ main (argc, argv)
input_suffix = "";
len = 0;
for (i = 0; i < sizeof cp->spec / sizeof cp->spec[0] && cp->spec[i]; i++)
len += strlen (cp->spec[i]);
for (j = 0; j < sizeof cp->spec / sizeof cp->spec[0]; j++)
if (cp->spec[j])
len += strlen (cp->spec[j]);
p = (char *) xmalloc (len + 1);
len = 0;
for (i = 0; i < sizeof cp->spec / sizeof cp->spec[0] && cp->spec[i]; i++)
{
strcpy (p + len, cp->spec[i]);
len += strlen (cp->spec[i]);
}
for (j = 0; j < sizeof cp->spec / sizeof cp->spec[0]; j++)
if (cp->spec[j])
{
strcpy (p + len, cp->spec[j]);
len += strlen (cp->spec[j]);
}
value = do_spec (p);
free (p);