diff options
author | Olivier Martin <olivier.martin@appnearme.com> | 2014-06-27 11:15:10 +0100 |
---|---|---|
committer | Olivier Martin <olivier.martin@appnearme.com> | 2014-06-27 11:15:10 +0100 |
commit | 87b24064644315444ad0a1f9afbd79e7537af1f2 (patch) | |
tree | 8d6e4cd45fdb989dae7bb13f7902c634295c42ac /src/lightdm-gtk-greeter.c | |
parent | 87229941b24a56f6d8324412eaba7325138e4d4d (diff) | |
download | lightdm-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.c | 4 |
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); |