(xm_update_menu): Fix loop termination test.
This commit is contained in:
parent
353e2ef2de
commit
29a0dc6ce1
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue