Commit 29a0dc6c authored by Karl Heuer's avatar Karl Heuer
Browse files

(xm_update_menu): Fix loop termination test.

parent 353e2ef2
......@@ -553,7 +553,9 @@ xm_update_menu (instance, widget, val, deep_p)
{
if (children)
{
for (i = 0, cur = val->contents; i < num_children;
for (i = 0, cur = val->contents;
(i < num_children
&& cur); /* how else to ditch unwanted children ?? - mgd */
i++, cur = cur->next)
{
if (cur->this_one_change == STRUCTURAL_CHANGE)
......
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