]> git.eshelyaron.com Git - emacs.git/commitdiff
(xm_update_menu): Fix loop termination test.
authorKarl Heuer <kwzh@gnu.org>
Sat, 13 Jul 1996 18:51:11 +0000 (18:51 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sat, 13 Jul 1996 18:51:11 +0000 (18:51 +0000)
lwlib/lwlib-Xm.c

index 57e4b4a2ca5cd9d32c059cc4965f33687f34f543..7909bac7392e42d187d26a4f2d69f6c9d6b53afd 100644 (file)
@@ -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)