[libdazzle] menus: be more defensive
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] menus: be more defensive
- Date: Fri, 1 Sep 2017 21:17:54 +0000 (UTC)
commit 8295ffb8701a11dfb4a3189a4c8f88971ee7d2e6
Author: Christian Hergert <chergert redhat com>
Date: Fri Sep 1 14:17:17 2017 -0700
menus: be more defensive
src/menus/dzl-menu-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/menus/dzl-menu-manager.c b/src/menus/dzl-menu-manager.c
index 608db05..efa60ac 100644
--- a/src/menus/dzl-menu-manager.c
+++ b/src/menus/dzl-menu-manager.c
@@ -586,7 +586,7 @@ dzl_menu_manager_remove (DzlMenuManager *self,
/* Iterate backward so we have a stable loop variable. */
for (i = n_items - 1; i >= 0; i--)
{
- guint item_merge_id;
+ guint item_merge_id = 0;
if (g_menu_model_get_item_attribute (G_MENU_MODEL (menu),
i,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]