changeset 15665:432750098147

(xm_update_menu): Fix loop termination test.
author Karl Heuer <kwzh@gnu.org>
date Sat, 13 Jul 1996 18:51:11 +0000
parents a50ebf4ac764
children 2bf083a9ad6a
files lwlib/lwlib-Xm.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c	Sat Jul 13 18:46:08 1996 +0000
+++ b/lwlib/lwlib-Xm.c	Sat Jul 13 18:51:11 1996 +0000
@@ -553,7 +553,9 @@
     {
       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)