[gnome-menus] [libmenu] Make sure to use a value when sorting items during a merge
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-menus] [libmenu] Make sure to use a value when sorting items during a merge
- Date: Tue, 29 Sep 2009 14:04:20 +0000 (UTC)
commit 117273842932a6fb24143926513474c28e3595b4
Author: Frederic Crozat <fcrozat mandriva com>
Date: Tue Sep 29 15:35:10 2009 +0200
[libmenu] Make sure to use a value when sorting items during a merge
The name variable was not assigned any value...
libmenu/gmenu-tree.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libmenu/gmenu-tree.c b/libmenu/gmenu-tree.c
index 84196b7..e03c146 100644
--- a/libmenu/gmenu-tree.c
+++ b/libmenu/gmenu-tree.c
@@ -1629,6 +1629,8 @@ gmenu_tree_item_compare_get_name_helper (GMenuTreeItem *item,
{
const char *name;
+ name = NULL;
+
switch (item->type)
{
case GMENU_TREE_ITEM_DIRECTORY:
@@ -1645,7 +1647,7 @@ gmenu_tree_item_compare_get_name_helper (GMenuTreeItem *item,
name = desktop_entry_get_name (GMENU_TREE_ENTRY (item)->desktop_entry);
break;
case GMENU_TREE_SORT_DISPLAY_NAME:
- gmenu_tree_entry_get_display_name (GMENU_TREE_ENTRY (item));
+ name = gmenu_tree_entry_get_display_name (GMENU_TREE_ENTRY (item));
break;
default:
g_assert_not_reached ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]