summaryrefslogtreecommitdiff
path: root/src/lightdm-gtk-greeter.c
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@appnearme.com>2014-06-27 11:15:10 +0100
committerOlivier Martin <olivier.martin@appnearme.com>2014-06-27 11:15:10 +0100
commit87b24064644315444ad0a1f9afbd79e7537af1f2 (patch)
tree8d6e4cd45fdb989dae7bb13f7902c634295c42ac /src/lightdm-gtk-greeter.c
parent87229941b24a56f6d8324412eaba7325138e4d4d (diff)
downloadlightdm-gtk-greeter-git-87b24064644315444ad0a1f9afbd79e7537af1f2.tar.gz
set_session: Ensure menu_items is not NULL
Diffstat (limited to 'src/lightdm-gtk-greeter.c')
-rw-r--r--src/lightdm-gtk-greeter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lightdm-gtk-greeter.c b/src/lightdm-gtk-greeter.c
index 4a54f3b..b7ddcbf 100644
--- a/src/lightdm-gtk-greeter.c
+++ b/src/lightdm-gtk-greeter.c
@@ -709,7 +709,9 @@ set_session (const gchar *session)
}
if (!menu_iter)
menu_iter = menu_items;
- gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menu_iter->data), TRUE);
+
+ if (menu_iter)
+ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menu_iter->data), TRUE);
}
g_free (current_session);