Commit f47ee9f2 by Richard Stallman

(chainon): Check for op2 being the last elt of the chain.

From-SVN: r1987
parent f786509d
......@@ -1490,6 +1490,7 @@ chainon (op1, op2)
{
for (t = op1; TREE_CHAIN (t); t = TREE_CHAIN (t))
if (t == op2) abort (); /* Circularity being created */
if (t == op2) abort (); /* Circularity being created */
TREE_CHAIN (t) = op2;
return op1;
}
......
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