Commit 164c4c91 by Doug Evans

(do_spec_1): Fix typos in version calculation.

From-SVN: r10634
parent cf78f929
...@@ -3774,7 +3774,7 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -3774,7 +3774,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
/* If desired, advance to second version number. */ /* If desired, advance to second version number. */
if (c1 == '2') if (c1 == '2')
{ {
/* Set P after the first period. */ /* Set V after the first period. */
while (*v != 0 && *v != ' ' && *v != '.') while (*v != 0 && *v != ' ' && *v != '.')
v++; v++;
if (*v == '.') if (*v == '.')
...@@ -3785,7 +3785,7 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -3785,7 +3785,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
while (*q != 0 && *q != ' ' && *q != '.') while (*q != 0 && *q != ' ' && *q != '.')
q++; q++;
/* Empty string means zero. */ /* Empty string means zero. */
if (p == q) if (v == q)
{ {
v = "0"; v = "0";
q = v + 1; q = v + 1;
......
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