aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-10-09 11:59:12 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-10-09 11:59:12 -0500
commit5c9f6467b9a8573439d1bee52a358678b10e5805 (patch)
treeaef4ce95a7dd58ad6e44a57f2d161fb55e91cb36
parentf9413135057b326177f6ae239a70ab10c02af9de (diff)
downloadayatana-indicator-datetime-5c9f6467b9a8573439d1bee52a358678b10e5805.tar.gz
ayatana-indicator-datetime-5c9f6467b9a8573439d1bee52a358678b10e5805.tar.bz2
ayatana-indicator-datetime-5c9f6467b9a8573439d1bee52a358678b10e5805.zip
fix off-by-one error in the appointments dbusmenuitem array
-rw-r--r--src/datetime-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index f0c45c0..b34c23e 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -833,8 +833,8 @@ update_appointment_menu_items (gpointer unused)
if (i >= MAX_APPOINTMENT_MENUITEMS)
continue;
- i++;
item = appointments[i];
+ i++;
/* Remove the icon as we might not replace it on error */
dbusmenu_menuitem_property_remove(item, APPOINTMENT_MENUITEM_PROP_ICON);