Commit 058d8521 by Richard Stallman

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

From-SVN: r2043
parent 9233f8ce
...@@ -3197,6 +3197,7 @@ main (argc, argv) ...@@ -3197,6 +3197,7 @@ main (argc, argv)
char **argv; char **argv;
{ {
register int i; register int i;
int j;
int value; int value;
int error_count = 0; int error_count = 0;
int linker_was_run = 0; int linker_was_run = 0;
...@@ -3371,17 +3372,19 @@ main (argc, argv) ...@@ -3371,17 +3372,19 @@ main (argc, argv)
input_suffix = ""; input_suffix = "";
len = 0; len = 0;
for (i = 0; i < sizeof cp->spec / sizeof cp->spec[0] && cp->spec[i]; i++) for (j = 0; j < sizeof cp->spec / sizeof cp->spec[0]; j++)
len += strlen (cp->spec[i]); if (cp->spec[j])
len += strlen (cp->spec[j]);
p = (char *) xmalloc (len + 1); p = (char *) xmalloc (len + 1);
len = 0; len = 0;
for (i = 0; i < sizeof cp->spec / sizeof cp->spec[0] && cp->spec[i]; i++) for (j = 0; j < sizeof cp->spec / sizeof cp->spec[0]; j++)
{ if (cp->spec[j])
strcpy (p + len, cp->spec[i]); {
len += strlen (cp->spec[i]); strcpy (p + len, cp->spec[j]);
} len += strlen (cp->spec[j]);
}
value = do_spec (p); value = do_spec (p);
free (p); free (p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment