diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-11-26 19:52:21 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-11-26 19:52:21 +0100 |
commit | 8d7682035713a8c3e0609df32e979d1e45f68cd6 (patch) | |
tree | 902929e976686485cc6d76cfc3c5f54f71337449 /src | |
parent | d1cdca8e019c34ea78ac6076fbc3586c6df8324e (diff) | |
download | ayatana-ido-8d7682035713a8c3e0609df32e979d1e45f68cd6.tar.gz ayatana-ido-8d7682035713a8c3e0609df32e979d1e45f68cd6.tar.bz2 ayatana-ido-8d7682035713a8c3e0609df32e979d1e45f68cd6.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.
Diffstat (limited to 'src')
-rw-r--r-- | src/idocalendarmenuitem.c | 4 |
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); |