aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-11-26 19:23:37 +0000
committerTarmac <Unknown>2013-11-26 19:23:37 +0000
commit04c85ff312093e995e6f29d824d01afc67ef7030 (patch)
tree902929e976686485cc6d76cfc3c5f54f71337449
parentd1cdca8e019c34ea78ac6076fbc3586c6df8324e (diff)
parent8d7682035713a8c3e0609df32e979d1e45f68cd6 (diff)
downloadayatana-ido-04c85ff312093e995e6f29d824d01afc67ef7030.tar.gz
ayatana-ido-04c85ff312093e995e6f29d824d01afc67ef7030.tar.bz2
ayatana-ido-04c85ff312093e995e6f29d824d01afc67ef7030.zip
ido_calendar_menu_item_new_from_model: initialize local variables with NULL
Both of these variables will be passed to g_free() without checking whether g_menu_item_get_attribute() failed. Fixes: https://bugs.launchpad.net/bugs/1255076. Approved by PS Jenkins bot, Sebastien Bacher.
-rw-r--r--src/idocalendarmenuitem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c
index 94f4f61..65dac7f 100644
--- a/src/idocalendarmenuitem.c
+++ b/src/idocalendarmenuitem.c
@@ -607,8 +607,8 @@ ido_calendar_menu_item_new_from_model (GMenuItem * menu_item,
GObject * o;
GtkWidget * calendar;
IdoCalendarMenuItem * ido_calendar;
- gchar * selection_action_name;
- gchar * activation_action_name;
+ gchar * selection_action_name = NULL;
+ gchar * activation_action_name = NULL;
/* get the select & activate action names */
g_menu_item_get_attribute (menu_item, "action", "s", &selection_action_name);