gnome-menus/gnome-menus-2.13.5-break-loop.patch

22 lines
517 B
Diff
Raw Normal View History

2006-02-06 17:22:38 +00:00
--- gnome-menus-2.13.5/libmenu/gmenu-tree.c.break-loop 2006-02-06 12:16:09.000000000 -0500
+++ gnome-menus-2.13.5/libmenu/gmenu-tree.c 2006-02-06 12:16:25.000000000 -0500
@@ -764,8 +764,7 @@
path = NULL;
}
- tmp = directory->contents;
- while (tmp != NULL)
+ for (tmp = directory->contents; tmp != NULL; tmp = tmp->next)
{
GMenuTreeItem *item = tmp->data;
@@ -781,8 +780,6 @@
else
return GMENU_TREE_DIRECTORY (item);
}
-
- tmp = tmp->next;
}
g_free (freeme);