From 8d7682035713a8c3e0609df32e979d1e45f68cd6 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Tue, 26 Nov 2013 19:52:21 +0100 Subject: 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. --- src/idocalendarmenuitem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/idocalendarmenuitem.c') 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); -- cgit v1.2.3